[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 18/20: After cloning a profil, show it and se
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 18/20: After cloning a profil, show it and select the default tab |
Date: |
Sat, 24 Oct 2015 21:45:05 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 876aaab5c8edbf9feac3ee920ff19d8dca02cb8d
Author: Dany De Bontridder <address@hidden>
Date: Sat Oct 24 22:19:55 2015 +0200
After cloning a profil, show it and select the default tab
---
include/ajax/ajax_get_profile.php | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/include/ajax/ajax_get_profile.php
b/include/ajax/ajax_get_profile.php
index 18f82cd..db63d5a 100644
--- a/include/ajax/ajax_get_profile.php
+++ b/include/ajax/ajax_get_profile.php
@@ -38,7 +38,7 @@ $p_id=HtmlInput::default_value_request('p_id', -1);
$profile=new Profile_sql($cn,$p_id);
$gDossier=Dossier::id();
$add_impression=HtmlInput::button("add", _("Ajout
Menu"),"onclick=\"add_menu({dossier:$gDossier,p_id:$p_id,type:'pr'})\"");
-$call_tab=HtmlInput::default_value_post('tab', 'none');
+$call_tab=HtmlInput::default_value_post('tab', 'profile_gen_div');
$a_tab=array('profile_gen_div'=>'tabs','profile_menu_div'=>'tabs','profile_print_div'=>'tabs','profile_gestion_div'=>'tabs','profile_repo_div'=>'tabs');
$a_tab[$call_tab]='tabs_selected';
?>
@@ -123,10 +123,7 @@ if ($profile->p_id > 0)
echo "<h1 class=\"legend\">"._("Dépôt de stock accessible")."</h1>";
$profile_menu->available_repository();
echo '</div>';
- if ( isset ($_POST['tab']))
- {
- echo create_script("profile_show('".$_POST['tab']."');");
- }
+ echo create_script("profile_show('".$call_tab."');");
}
else
{
- [Noalyss-commit] [noalyss] 08/20: security, (continued)
- [Noalyss-commit] [noalyss] 08/20: security, Dany De Bontridder, 2015/10/24
- [Noalyss-commit] [noalyss] 09/20: security, Dany De Bontridder, 2015/10/24
- [Noalyss-commit] [noalyss] 05/20: translation, Dany De Bontridder, 2015/10/24
- [Noalyss-commit] [noalyss] 10/20: security, Dany De Bontridder, 2015/10/24
- [Noalyss-commit] [noalyss] 12/20: protect variable, Dany De Bontridder, 2015/10/24
- [Noalyss-commit] [noalyss] 11/20: security, Dany De Bontridder, 2015/10/24
- [Noalyss-commit] [noalyss] 13/20: protect variable, Dany De Bontridder, 2015/10/24
- [Noalyss-commit] [noalyss] 14/20: Round value , due to the 4 dec in Sale and Expense, Dany De Bontridder, 2015/10/24
- [Noalyss-commit] [noalyss] 17/20: After cloning a profil, show it and select the default tab, Dany De Bontridder, 2015/10/24
- [Noalyss-commit] [noalyss] 15/20: Menu : fix problem when cloning, Dany De Bontridder, 2015/10/24
- [Noalyss-commit] [noalyss] 18/20: After cloning a profil, show it and select the default tab,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 19/20: Menu : highlight selected menu, Dany De Bontridder, 2015/10/24
- [Noalyss-commit] [noalyss] 20/20: Menu : highlight selected menu, Dany De Bontridder, 2015/10/24
- [Noalyss-commit] [noalyss] 16/20: Security, Dany De Bontridder, 2015/10/24