mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°7371 - Remembers the choice done in the popup that appears when saving public and private logs at the same time (#636)
This commit is contained in:
@@ -132,7 +132,6 @@ class ActivityPanel extends UIBlock
|
||||
$this->bAreEntriesSorted = false;
|
||||
$this->bHasMoreEntriesToLoad = false;
|
||||
$this->aLastLoadedEntriesIds = [];
|
||||
$this->ComputedShowMultipleEntriesSubmitConfirmation();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -960,21 +959,6 @@ class ActivityPanel extends UIBlock
|
||||
return $aSubBlocks;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see static::$bShowMultipleEntriesSubmitConfirmation
|
||||
* @return $this
|
||||
* @throws \CoreException
|
||||
* @throws \CoreUnexpectedValue
|
||||
* @throws \MySQLException
|
||||
*/
|
||||
protected function ComputedShowMultipleEntriesSubmitConfirmation()
|
||||
{
|
||||
// Note: Test on a string is necessary as we can only store strings from the JS API, not booleans.
|
||||
// Note 2: Do not invert the test to "=== 'true'" as it won't work. Default value is a bool ("true"), values from the DB are strings (true|false)
|
||||
$this->bShowMultipleEntriesSubmitConfirmation = appUserPreferences::GetPref('activity_panel.show_multiple_entries_submit_confirmation', static::DEFAULT_SHOW_MULTIPLE_ENTRIES_SUBMI_CONFIRMATION) !== 'false';
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
* @throws \CoreException
|
||||
|
||||
Reference in New Issue
Block a user