mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Fix legacy options were not parsed if the first one was empty
eg. ,,,legacy,option was not parsed
This commit is contained in:
parent
8ada656d56
commit
19a67b92fd
@ -522,8 +522,8 @@ var et2_widget = (function(){ "use strict"; return ClassWithAttributes.extend(
|
|||||||
|
|
||||||
for (var j = 0; j < splitted.length && j < _proto.legacyOptions.length; j++)
|
for (var j = 0; j < splitted.length && j < _proto.legacyOptions.length; j++)
|
||||||
{
|
{
|
||||||
// Blank = not set
|
// Blank = not set, unless there's more legacy options provided after
|
||||||
if(splitted[j].trim().length == 0) continue;
|
if(splitted[j].trim().length === 0 && _proto.legacyOptions.length >= splitted.length) continue;
|
||||||
|
|
||||||
// Check to make sure we don't overwrite a current option with a legacy option
|
// Check to make sure we don't overwrite a current option with a legacy option
|
||||||
if(typeof _target[_proto.legacyOptions[j]] === "undefined")
|
if(typeof _target[_proto.legacyOptions[j]] === "undefined")
|
||||||
|
Loading…
Reference in New Issue
Block a user