mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 16:22:20 +02:00
Portal: CaseLog fields value was kept in the form after object update instead of being reset.
SVN:trunk[4664]
This commit is contained in:
@@ -884,6 +884,9 @@ class ObjectFormManager extends FormManager
|
||||
// Ending transaction with a commit as everything was fine
|
||||
CMDBSource::Query('COMMIT');
|
||||
|
||||
// Resetting caselog fields value, otherwise the value will stay in it after submit.
|
||||
$this->oForm->ResetCaseLogFields();
|
||||
|
||||
if ($bWasModified)
|
||||
{
|
||||
$aData['messages']['success'] += array('_main' => array(Dict::S('Brick:Portal:Object:Form:Message:Saved')));
|
||||
|
||||
@@ -135,16 +135,6 @@ $(function()
|
||||
// If everything is okay, we close the form and reload it.
|
||||
if(oValidation.valid)
|
||||
{
|
||||
// Resetting textarea fields (delay is necessary has we have to wait for the form to be built.
|
||||
setTimeout(function(){
|
||||
me.options.field_set.find('.portal_form_field_html').each(function(iIndex, oElem){
|
||||
if($(oElem).find('.cke').length > 0)
|
||||
{
|
||||
$(oElem).triggerHandler('set_current_value', '');
|
||||
}
|
||||
});
|
||||
}, 200);
|
||||
|
||||
if(me.options.is_modal)
|
||||
{
|
||||
me.element.closest('.modal').modal('hide');
|
||||
|
||||
Reference in New Issue
Block a user