#780 Auto refresh for the shortcuts

SVN:trunk[2926]
This commit is contained in:
Romain Quetiez
2013-10-17 14:47:05 +00:00
parent afa3c40c3e
commit bbb31e2b7f
4 changed files with 61 additions and 4 deletions

View File

@@ -899,6 +899,12 @@ EOF
$oShortcut->Set("context", $sContext);
$oShortcut->Set("name", $aValues['name']);
$oShortcut->Set("oql", $aValues['oql']);
$iAutoReload = (int)$aValues['auto_reload_sec'];
if (($aValues['auto_reload']) && ($iAutoReload > 0))
{
$oShortcut->Set("auto_reload_sec", max(5, $iAutoReload));
$oShortcut->Set("auto_reload", 'custom');
}
$iId = $oShortcut->DBInsertNoReload();
// Add the menu node in the right place