fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [17349] bookingfrontend: debug for orgs


From: sigurdne
Subject: [Fmsystem-commits] [17349] bookingfrontend: debug for orgs
Date: Wed, 22 Nov 2017 07:49:57 -0500 (EST)

Revision: 17349
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17349
Author:   sigurdne
Date:     2017-11-22 07:49:56 -0500 (Wed, 22 Nov 2017)
Log Message:
-----------
bookingfrontend: debug for orgs

Modified Paths:
--------------
    trunk/bookingfrontend/inc/custom/default/Altinn2_Bergen_kommune.php
    trunk/bookingfrontend/inc/custom/default/MinId.php
    trunk/bookingfrontend/inc/custom/default/MinId2.php
    trunk/bookingfrontend/templates/base/config.tpl

Modified: trunk/bookingfrontend/inc/custom/default/Altinn2_Bergen_kommune.php
===================================================================
--- trunk/bookingfrontend/inc/custom/default/Altinn2_Bergen_kommune.php 
2017-11-22 10:33:29 UTC (rev 17348)
+++ trunk/bookingfrontend/inc/custom/default/Altinn2_Bergen_kommune.php 
2017-11-22 12:49:56 UTC (rev 17349)
@@ -72,6 +72,7 @@
 
                        $location_URL = 
isset($this->config->config_data['soap_location']) && 
$this->config->config_data['soap_location'] ? 
$this->config->config_data['soap_location'] : 
"http://wsm01e-t.usrv.ubergenkom.no:8888/gateway/services/AltinnReporteesService";;
 #A-test
 
+                       $test_organization = 
$this->config->config_data['test_organization'];
                        $soap_login = $this->config->config_data['soap_login'];
                        $soap_password = 
$this->config->config_data['soap_password'];
 
@@ -121,14 +122,14 @@
                        $stage = phpgw::get_var('stage');
                        $org_id = phpgw::get_var('org_id');
 
-                       if ($this->debug)
+                       if ($this->debug && $test_organization)
                        {
                                $orgs[] = array
                                        (
-                                       'id' => 994239929,
+                                       'id' => $test_organization,
                                        'name' => 'Bølleball',
                                );
-                               $orgs_validate[] = 994239929;
+                               $orgs_validate[] = $test_organization;
                                if(!$fodsels_nr)
                                {
                                        $fodsels_nr = 1;

Modified: trunk/bookingfrontend/inc/custom/default/MinId.php
===================================================================
--- trunk/bookingfrontend/inc/custom/default/MinId.php  2017-11-22 10:33:29 UTC 
(rev 17348)
+++ trunk/bookingfrontend/inc/custom/default/MinId.php  2017-11-22 12:49:56 UTC 
(rev 17349)
@@ -160,21 +160,18 @@
                                        'orgnr' => $organization_number
                                );
 
-                               $orgs_validate[] = $organization_number;
+                       }
 
+               //Testvalues
+                       $test_organization = 
$this->config->config_data['test_organization'];
+                       if ($this->debug && $test_organization)
+                       {
+                               $results[] = array
+                               (
+                                       'orgnr' => $test_organization
+                               );
                        }
 
-               //Testvalues
-               /*
-                       $results[] = array
-                       (
-                               'orgnr' => 980016080
-                       );
-                       $results[] = array
-                       (
-                               'orgnr' => 996277267
-                       );
-               */
                        return $results;
                }
 

Modified: trunk/bookingfrontend/inc/custom/default/MinId2.php
===================================================================
--- trunk/bookingfrontend/inc/custom/default/MinId2.php 2017-11-22 10:33:29 UTC 
(rev 17348)
+++ trunk/bookingfrontend/inc/custom/default/MinId2.php 2017-11-22 12:49:56 UTC 
(rev 17349)
@@ -156,10 +156,14 @@
                                $orgs_validate[] = $organization_number;
 
                        }
-                       if ($this->debug)
+
+                       $test_organization = 
$this->config->config_data['test_organization'];
+                       if ($this->debug && $test_organization)
                        {
-                               _debug_array($results);
-                               die();
+                               $results[] = array
+                               (
+                                       'orgnr' => $test_organization
+                               );
                        }
 
                        return $results;

Modified: trunk/bookingfrontend/templates/base/config.tpl
===================================================================
--- trunk/bookingfrontend/templates/base/config.tpl     2017-11-22 10:33:29 UTC 
(rev 17348)
+++ trunk/bookingfrontend/templates/base/config.tpl     2017-11-22 12:49:56 UTC 
(rev 17349)
@@ -115,6 +115,10 @@
                        </td>
                </tr>
                <tr class="row_on">
+                       <td>{lang_test_organization}:</td>
+                       <td><input name="newsettings[test_organization]" 
value="{value_test_organization}"></td>
+               </tr>
+               <tr class="row_on">
                        <td>{lang_google_tracker_id}:</td>
                        <td><input name="newsettings[tracker_id]" 
value="{value_tracker_id}"></td>
                </tr>




reply via email to

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