mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°3649 - Activity panel: Add user pref. to define whether the entry form should be opened by default
This commit is contained in:
@@ -667,8 +667,21 @@ class ActivityPanel extends UIBlock
|
||||
}
|
||||
|
||||
/**
|
||||
* @uses $bHasStates
|
||||
* @return bool True if the entry form shouldbe opened by default, false otherwise. Based on the user pref. or false by default.
|
||||
* @throws \CoreException
|
||||
* @throws \CoreUnexpectedValue
|
||||
* @throws \MySQLException
|
||||
*/
|
||||
public function IsEntryFormOpened(): bool
|
||||
{
|
||||
$bDefault = false;
|
||||
|
||||
return appUserPreferences::GetPref('activity_panel.is_entry_form_opened', $bDefault);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
* @uses $bHasStates
|
||||
*/
|
||||
public function HasStates(): bool
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user