Fix default vacation status (#1490019) - improve error message
Conflicts:
plugins/managesieve/Changelog
| | |
| | | - Fix missing css/js scripts in filter form in mail task |
| | | - Fix default vacation status (#1490019) |
| | | - Fix bug where non-existing (or unsubscribed) folder wasn't listed in folder selector (#1489956) |
| | | - Added optional separate interface for out-of-office management (#1488266) |
| | | - Fix disabled "create filter" action |
| | |
| | | } |
| | | |
| | | if ($vacation_action['reason'] == '') { |
| | | $error = 'managesieve.cannotbeempty'; |
| | | $error = 'managesieve.emptyvacationbody'; |
| | | } |
| | | |
| | | if ($vacation_action[$interval_type] && !preg_match('/^[0-9]+$/', $vacation_action[$interval_type])) { |
| | | $error = 'managesieve.forbiddenchars'; |
| | | } |
| | |
| | | } |
| | | |
| | | $table->add('title', html::label('vacation_status', $this->plugin->gettext('vacation.status'))); |
| | | $table->add(null, $status->show($this->vacation['disabled'] ? 'off' : 'on')); |
| | | $table->add(null, $status->show(!isset($this->vacation['disabled']) || $this->vacation['disabled'] ? 'off' : 'on')); |
| | | |
| | | $out .= html::tag('fieldset', $class, html::tag('legend', null, $this->plugin->gettext('vacation.reply')) . $table->show($attrib)); |
| | | |
| | |
| | | $messages['invaliddateformat'] = 'Invalid date or date part format'; |
| | | $messages['saveerror'] = 'Unable to save data. Server error occurred.'; |
| | | $messages['vacationsaved'] = 'Vacation data saved successfully.'; |
| | | $messages['emptyvacationbody'] = 'Body of vacation message is required!'; |
| | | |
| | | ?> |