#764: Saving settings as "Default for all lists" now works as expected

SVN:trunk[2997]
This commit is contained in:
Denis Flaven
2013-11-27 08:51:51 +00:00
parent 18664c8151
commit 4a849ee4db
6 changed files with 13 additions and 5 deletions

View File

@@ -869,7 +869,7 @@ Wenn Aktionen mit Trigger verknüpft sind, bekommt jede Aktion eine Auftragsnumm
'UI:Display_X_ItemsPerPage' => '%1$s Elemente pro Seite anzeigen',
'UI:UseSavetheSettings' => 'Einstellungen speichern',
'UI:OnlyForThisList' => 'Nur für diese Liste',
'UI:ForAllLists' => 'Für alle Listen',
'UI:ForAllLists' => 'Standard für alle Listen',
'UI:ExtKey_AsLink' => '%1$s (Link)',
'UI:ExtKey_AsFriendlyName' => '%1$s (Friendly Name)',
'UI:ExtField_AsRemoteField' => '%1$s (%2$s)',

View File

@@ -1057,7 +1057,7 @@ When associated with a trigger, each action is given an "order" number, specifyi
'UI:Display_X_ItemsPerPage' => 'Display %1$s items per page',
'UI:UseSavetheSettings' => 'Save the Settings',
'UI:OnlyForThisList' => 'Only for this list',
'UI:ForAllLists' => 'For all lists',
'UI:ForAllLists' => 'Default for all lists',
'UI:ExtKey_AsLink' => '%1$s (Link)',
'UI:ExtKey_AsFriendlyName' => '%1$s (Friendly Name)',
'UI:ExtField_AsRemoteField' => '%1$s (%2$s)',

View File

@@ -1032,7 +1032,7 @@ Cuando se asocien con un disparador, cada acción recibe un número de "orden",
'UI:Display_X_ItemsPerPage' => 'Desplegar %1$s elementos por página',
'UI:UseSavetheSettings' => 'Guardar Configuraciones',
'UI:OnlyForThisList' => 'Sólo esta Lista',
'UI:ForAllLists' => 'Para todas las Listas',
'UI:ForAllLists' => 'Defecto en todas las listas',
'UI:ExtKey_AsLink' => '%1$s (Liga)',
'UI:ExtKey_AsFriendlyName' => '%1$s (Nombre Común)',
'UI:ExtField_AsRemoteField' => '%1$s (%2$s)',

View File

@@ -900,7 +900,7 @@ Lors de l\'association à un déclencheur, on attribue à chaque action un numé
'UI:Display_X_ItemsPerPage' => 'Afficher %1$s éléments par page',
'UI:UseSavetheSettings' => 'Enregistrer ces réglages',
'UI:OnlyForThisList' => 'Seulement pour cette liste',
'UI:ForAllLists' => 'Pour toutes les listes',
'UI:ForAllLists' => 'Défaut pour toutes les listes',
'UI:ExtKey_AsLink' => '%1$s (Lien)',
'UI:ExtKey_AsFriendlyName' => '%1$s (Nom)',
'UI:ExtField_AsRemoteField' => '%1$s (%2$s)',

View File

@@ -875,7 +875,7 @@ Dict::Add('JA JP', 'Japanese', '日本語', array(
'UI:Display_X_ItemsPerPage' => '1ページに %1$s アイテムを表示',
'UI:UseSavetheSettings' => 'セッティングを保存',
'UI:OnlyForThisList' => 'このリストのみ',
'UI:ForAllLists' => 'てのリスト',
'UI:ForAllLists' => 'すべてのリストのデフォルト',
'UI:ExtKey_AsLink' => '%1$s (Link)',
'UI:ExtKey_AsFriendlyName' => '%1$s (Friendly Name)',
'UI:ExtField_AsRemoteField' => '%1$s (%2$s)',

View File

@@ -207,6 +207,14 @@ try
if ($bSaveAsDefaults)
{
if ($sTableId != null)
{
$oCurrSettings = DataTableSettings::GetTableSettings($aClassAliases, $sTableId, true /* bOnlyTable */ );
if ($oCurrSettings)
{
$oCurrSettings->ResetToDefault(false); // Reset this table to the defaults
}
}
$bRet = $oSettings->SaveAsDefault();
}
else