Jump to content

New/Edit Package Option


Trawis

Recommended Posts

When I want to create new or edit existing package option I get error message: "Option values must be unique."

But for quantity value field has been disabled/hidden so I can't enter it.

...admin/package_options/add

...admin/package_options/edit/{id}

Workaround: edit package_options.php (line 1761) located in app\models like this:

'rule' => function($values) use ($type) {
	if ($type === 'quantity') {
		return true;
    }
    return $this->validateUniqueValues($values);
},

Blesta v4.7.0

confOptionsAdd_Edit-BUG.PNG

Link to comment
Share on other sites

  • Tyson locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...