noalyss-commit
[Top][All Lists]
Advanced

[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
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]