Guite/MostGenerator — Issue #159: wrong case statement in error message
Author: espaan
Created: 2012-02-24 19:57:20+00:00
State: open

MODULE_Form_Handler_User_ENTITY_Base_Edit
function getDefaultMessage reads
with 2 times update in the case.
``` protected function getDefaultMessage($args, $success = false)
{
if ($success !== true) {
return parent::getDefaultMessage($args, $success);
}

$message = '';
switch ($args['commandName']) {
case 'create':
$message = $this->__('Done! Inschrijving created.');
break;
case 'update':
$message = $this->__('Done! Inschrijving updated.');
break;
case 'update':
$message = $this->__('Done! Inschrijving deleted.');
break;
}
return $message;
}
```