Return error message on category creation failure

This commit is contained in:
Florian HENRY
2014-10-02 15:24:40 +02:00
parent d6fc967162
commit 4b28ff005e
2 changed files with 3 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ For users:
- Fix: [ bug #1593 ] Spanish Localtax IRPF not being calculated since 3.6.0 in supplier invoices when adding a line - Fix: [ bug #1593 ] Spanish Localtax IRPF not being calculated since 3.6.0 in supplier invoices when adding a line
- Fix: Web service categorie WDSL declaration is correct - Fix: Web service categorie WDSL declaration is correct
- Fix: ErrorBadValueForParamNotAString was displayed in virtual product if no base price defined - Fix: ErrorBadValueForParamNotAString was displayed in virtual product if no base price defined
- Fix: Category creation failed and no message output
***** ChangeLog for 3.6 compared to 3.5.* ***** ***** ChangeLog for 3.6 compared to 3.5.* *****
For users: For users:

View File

@@ -143,6 +143,8 @@ if ($action == 'add' && $user->rights->categorie->creer)
{ {
$action = 'confirmed'; $action = 'confirmed';
$_POST["addcat"] = ''; $_POST["addcat"] = '';
} else {
setEventMessage($object->error,'errors');
} }
} }
} }