Passed
Push — dev ( 813770 )
by Rafael
69:44
created
public/htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     }
159 159
 
160 160
 
161
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
161
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
162 162
     /**
163 163
      *  Function to build pdf onto disk
164 164
      *
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function write_file($object, $outputlangs = null, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
174 174
     {
175
-		// phpcs:enable
175
+        // phpcs:enable
176 176
         global $user, $langs, $conf, $hookmanager, $mysoc, $nblines;
177 177
 
178 178
         if (!is_object($outputlangs)) {
@@ -702,8 +702,8 @@  discard block
 block discarded – undo
702 702
         }
703 703
     }
704 704
 
705
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
706
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
705
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
706
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
707 707
     /**
708 708
      *  Show payments table
709 709
      *
@@ -715,12 +715,12 @@  discard block
 block discarded – undo
715 715
      */
716 716
     protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
717 717
     {
718
-		// phpcs:enable
718
+        // phpcs:enable
719 719
         return 1;
720 720
     }
721 721
 
722
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
723
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
722
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
723
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
724 724
     /**
725 725
      *   Show miscellaneous information (payment mode, payment term, ...)
726 726
      *
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
      */
733 733
     protected function _tableau_info(&$pdf, $object, $posy, $outputlangs)
734 734
     {
735
-		// phpcs:enable
735
+        // phpcs:enable
736 736
         global $conf, $mysoc;
737 737
         $default_font_size = pdf_getPDFFontSize($outputlangs);
738 738
 
@@ -783,8 +783,8 @@  discard block
 block discarded – undo
783 783
         return $posy;
784 784
     }
785 785
 
786
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
787
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
786
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
787
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
788 788
     /**
789 789
      *  Show total to pay
790 790
      *
@@ -797,7 +797,7 @@  discard block
 block discarded – undo
797 797
      */
798 798
     protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
799 799
     {
800
-		// phpcs:enable
800
+        // phpcs:enable
801 801
         global $conf, $mysoc;
802 802
 
803 803
         $default_font_size = pdf_getPDFFontSize($outputlangs);
@@ -988,7 +988,7 @@  discard block
 block discarded – undo
988 988
         return ($tab2_top + ($tab2_hl * $index));
989 989
     }
990 990
 
991
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
991
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
992 992
     /**
993 993
      *   Show table for lines
994 994
      *
@@ -1088,7 +1088,7 @@  discard block
 block discarded – undo
1088 1088
         }
1089 1089
     }
1090 1090
 
1091
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1091
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1092 1092
     /**
1093 1093
      *  Show top header of page.
1094 1094
      *
@@ -1357,7 +1357,7 @@  discard block
 block discarded – undo
1357 1357
         return $top_shift;
1358 1358
     }
1359 1359
 
1360
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1360
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1361 1361
     /**
1362 1362
      *  Show footer of page. Need this->emetteur object
1363 1363
      *
Please login to merge, or discard this patch.
core/modules/supplier_order/doc/doc_generic_supplier_order_odt.modules.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         return $texte;
196 196
     }
197 197
 
198
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
198
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
199 199
     /**
200 200
      *  Function to build a document on disk using the generic odt module.
201 201
      *
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
211 211
     {
212
-		// phpcs:enable
212
+        // phpcs:enable
213 213
         global $user, $langs, $conf, $mysoc, $hookmanager;
214 214
 
215 215
         if (empty($srctemplatepath)) {
Please login to merge, or discard this patch.
public/htdocs/core/modules/supplier_order/modules_commandefournisseur.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     public $atleastoneratenotnull = 0;
58 58
     public $atleastonediscount = 0;
59 59
 
60
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
60
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
61 61
     /**
62 62
      *  Return list of active generation models
63 63
      *
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public static function liste_modeles($db, $maxfilenamelength = 0)
69 69
     {
70
-		// phpcs:enable
70
+        // phpcs:enable
71 71
         $type = 'order_supplier';
72 72
         $list = array();
73 73
 
Please login to merge, or discard this patch.
public/htdocs/core/modules/modFacture.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -689,7 +689,7 @@
 block discarded – undo
689 689
         $keyforaliasextra = 'extra';
690 690
         include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php';
691 691
         $this->export_sql_start[$r] = 'SELECT DISTINCT ';
692
-        $this->export_sql_end[$r]  = ' FROM ' . MAIN_DB_PREFIX . 'societe as s';
692
+        $this->export_sql_end[$r] = ' FROM ' . MAIN_DB_PREFIX . 'societe as s';
693 693
         if (!empty($user) && !$user->hasRight('societe', 'client', 'voir')) {
694 694
             $this->export_sql_end[$r] .= ' LEFT JOIN ' . MAIN_DB_PREFIX . 'societe_commerciaux as sc ON sc.fk_soc = s.rowid';
695 695
         }
Please login to merge, or discard this patch.
htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         return $texte;
196 196
     }
197 197
 
198
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
198
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
199 199
     /**
200 200
      *  Function to build a document on disk using the generic odt module.
201 201
      *
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
211 211
     {
212
-		// phpcs:enable
212
+        // phpcs:enable
213 213
         global $user, $langs, $conf, $mysoc, $hookmanager;
214 214
 
215 215
         if (empty($srctemplatepath)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
         $maxfilesizearray = getMaxFileSizeArray();
175 175
         $maxmin = $maxfilesizearray['maxmin'];
176 176
         if ($maxmin > 0) {
177
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
177
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
178 178
         }
179 179
         $texte .= ' <input type="file" name="uploadfile">';
180 180
         $texte .= '<input type="hidden" value="CONTRACT_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
public/htdocs/core/modules/contract/doc/pdf_strato.modules.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $this->posxdesc = $this->marge_gauche + 1;
129 129
     }
130 130
 
131
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
131
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
132 132
     /**
133 133
      *  Function to build pdf onto disk
134 134
      *
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
144 144
     {
145
-		// phpcs:enable
145
+        // phpcs:enable
146 146
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
147 147
 
148 148
         if (!is_object($outputlangs)) {
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
         }
494 494
     }
495 495
 
496
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
496
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
497 497
     /**
498 498
      *   Show table for lines
499 499
      *
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
         $pdf->MultiCell($this->page_largeur - $this->marge_droite - $posmiddle - 5, 20, '', 1);
576 576
     }
577 577
 
578
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
578
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
579 579
     /**
580 580
      *  Show top header of page.
581 581
      *
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
      */
590 590
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null, $titlekey = "Contract")
591 591
     {
592
-		// phpcs:enable
592
+        // phpcs:enable
593 593
         global $conf;
594 594
 
595 595
         $top_shift = 0;
@@ -793,7 +793,7 @@  discard block
 block discarded – undo
793 793
         return $top_shift;
794 794
     }
795 795
 
796
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
796
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
797 797
     /**
798 798
      *      Show footer of page. Need this->emetteur object
799 799
      *
Please login to merge, or discard this patch.
public/htdocs/core/modules/contract/modules_contract.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
  */
40 40
 abstract class ModelePDFContract extends CommonDocGenerator
41 41
 {
42
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
42
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
43 43
     /**
44 44
      *  Return list of active generation modules
45 45
      *
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public static function liste_modeles($db, $maxfilenamelength = 0)
51 51
     {
52
-		// phpcs:enable
52
+        // phpcs:enable
53 53
         $type = 'contract';
54 54
         $list = array();
55 55
 
Please login to merge, or discard this patch.
public/htdocs/core/modules/modExpedition.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function __construct($db)
47 47
     {
48
-        global $conf, $user;    // $conf is required by /core/extrafieldsinexport.inc.php
48
+        global $conf, $user; // $conf is required by /core/extrafieldsinexport.inc.php
49 49
 
50 50
         $this->db = $db;
51 51
         $this->numero = 80;
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         $this->export_fields_array[$r] = array(
249 249
             's.rowid' => "IdCompany", 's.nom' => 'ThirdParty', 's.address' => 'Address', 's.zip' => 'Zip', 's.town' => 'Town', 'd.nom' => 'State', 'co.label' => 'Country',
250 250
             'co.code' => 'CountryCode', 's.phone' => 'Phone', 's.siren' => 'ProfId1', 's.siret' => 'ProfId2', 's.ape' => 'ProfId3', 's.idprof4' => 'ProfId4', 's.idprof5' => 'ProfId5',
251
-            's.idprof6' => 'ProfId6', 'c.rowid' => "Id", 'c.ref' => "Ref", 'c.ref_customer' => "RefCustomer", 'c.fk_soc' => "IdCompany", 'c.date_creation' => "DateCreation",  'c.date_valid' => "DateValidation",
251
+            's.idprof6' => 'ProfId6', 'c.rowid' => "Id", 'c.ref' => "Ref", 'c.ref_customer' => "RefCustomer", 'c.fk_soc' => "IdCompany", 'c.date_creation' => "DateCreation", 'c.date_valid' => "DateValidation",
252 252
             'c.date_delivery' => "DateDeliveryPlanned", 'c.tracking_number' => "TrackingNumber", 'c.height' => "Height", 'c.width' => "Width", 'c.size' => "Depth",
253 253
             'c.size_units' => 'SizeUnits', 'c.weight' => "Weight", 'c.weight_units' => "WeightUnits", 'c.fk_statut' => 'Status', 'c.note_public' => "NotePublic",
254 254
             'ed.rowid' => 'LineId', 'cd.description' => 'Description', 'ed.qty' => "Qty", 'p.rowid' => 'ProductId', 'p.ref' => 'ProductRef', 'p.label' => 'ProductLabel',
Please login to merge, or discard this patch.
public/htdocs/core/modules/modEventOrganization.class.php 1 patch
Spacing   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -233,82 +233,82 @@  discard block
 block discarded – undo
233 233
         /* END MODULEBUILDER TOPMENU */
234 234
         /* BEGIN MODULEBUILDER LEFTMENU CONFERENCEORBOOTH*/
235 235
         $this->menu[$r++] = array(
236
-            'fk_menu' => 'fk_mainmenu=project',     // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
237
-            'type' => 'left',                           // This is a Left menu entry
236
+            'fk_menu' => 'fk_mainmenu=project', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
237
+            'type' => 'left', // This is a Left menu entry
238 238
             'titre' => 'EventOrganizationMenuLeft',
239 239
             'prefix' => img_picto('', 'eventorganization', 'class="paddingright pictofixedwidth"'),
240 240
             'mainmenu' => 'project',
241 241
             'leftmenu' => 'eventorganization',
242 242
             'url' => '',
243
-            'langs' => 'eventorganization',         // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
243
+            'langs' => 'eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
244 244
             'position' => 1000 + $r,
245
-            'enabled' => 'isModEnabled("eventorganization")',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
246
-            'perms' => '$user->hasRight("eventorganization", "read")',                          // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
245
+            'enabled' => 'isModEnabled("eventorganization")', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
246
+            'perms' => '$user->hasRight("eventorganization", "read")', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
247 247
             'target' => '',
248
-            'user' => 2,                                // 0=Menu for internal users, 1=external users, 2=both
248
+            'user' => 2, // 0=Menu for internal users, 1=external users, 2=both
249 249
         );
250 250
         $this->menu[$r++] = array(
251
-            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganization',       // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
252
-            'type' => 'left',                           // This is a Left menu entry
251
+            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganization', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
252
+            'type' => 'left', // This is a Left menu entry
253 253
             'titre' => 'New',
254 254
             'url' => '/projet/card.php?leftmenu=projects&action=create&usage_organize_event=1&usage_opportunity=0',
255
-            'langs' => 'eventorganization@eventorganization',           // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
255
+            'langs' => 'eventorganization@eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
256 256
             'position' => 1000 + $r,
257
-            'enabled' => 'isModEnabled("eventorganization")',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
258
-            'perms' => '$user->hasRight("eventorganization", "write")',                         // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
257
+            'enabled' => 'isModEnabled("eventorganization")', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
258
+            'perms' => '$user->hasRight("eventorganization", "write")', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
259 259
             'target' => '',
260
-            'user' => 2,                                // 0=Menu for internal users, 1=external users, 2=both
260
+            'user' => 2, // 0=Menu for internal users, 1=external users, 2=both
261 261
         );
262 262
         $this->menu[$r++] = array(
263
-            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganization',       // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
264
-            'type' => 'left',                           // This is a Left menu entry
263
+            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganization', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
264
+            'type' => 'left', // This is a Left menu entry
265 265
             'titre' => 'List',
266 266
             'url' => '/projet/list.php?search_usage_event_organization=1&search_status=99&mainmenu=project&contextpage=organizedevents',
267
-            'langs' => 'eventorganization@eventorganization',           // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
267
+            'langs' => 'eventorganization@eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
268 268
             'position' => 1000 + $r,
269
-            'enabled' => 'isModEnabled("eventorganization")',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
270
-            'perms' => '$user->hasRight("eventorganization", "write")',                         // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
269
+            'enabled' => 'isModEnabled("eventorganization")', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
270
+            'perms' => '$user->hasRight("eventorganization", "write")', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
271 271
             'target' => '',
272
-            'user' => 2,                                // 0=Menu for internal users, 1=external users, 2=both
272
+            'user' => 2, // 0=Menu for internal users, 1=external users, 2=both
273 273
         );
274 274
         $this->menu[$r++] = array(
275
-            'fk_menu' => 'fk_mainmenu=project',     // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
276
-            'type' => 'left',                           // This is a Left menu entry
275
+            'fk_menu' => 'fk_mainmenu=project', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
276
+            'type' => 'left', // This is a Left menu entry
277 277
             'titre' => 'ConferenceOrBooth',
278 278
             'prefix' => img_picto('', 'conferenceorbooth', 'class="paddingright pictofixedwidth"'),
279 279
             'mainmenu' => 'project',
280 280
             'leftmenu' => 'eventorganizationconforbooth',
281 281
             'url' => '',
282
-            'langs' => 'eventorganization',         // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
282
+            'langs' => 'eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
283 283
             'position' => 1000 + $r,
284
-            'enabled' => 'isModEnabled("eventorganization")',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
285
-            'perms' => '$user->hasRight("eventorganization", "read")',                          // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
284
+            'enabled' => 'isModEnabled("eventorganization")', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
285
+            'perms' => '$user->hasRight("eventorganization", "read")', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
286 286
             'target' => '',
287
-            'user' => 2,                                // 0=Menu for internal users, 1=external users, 2=both
287
+            'user' => 2, // 0=Menu for internal users, 1=external users, 2=both
288 288
         );
289 289
         $this->menu[$r++] = array(
290
-            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganizationconforbooth',        // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
291
-            'type' => 'left',                           // This is a Left menu entry
290
+            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganizationconforbooth', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
291
+            'type' => 'left', // This is a Left menu entry
292 292
             'titre' => 'New',
293 293
             'url' => '/eventorganization/conferenceorbooth_card.php?leftmenu=projects&action=create',
294
-            'langs' => 'eventorganization',         // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
294
+            'langs' => 'eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
295 295
             'position' => 1000 + $r,
296
-            'enabled' => 'isModEnabled("eventorganization")',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
297
-            'perms' => '$user->hasRight("eventorganization", "write")',                         // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
296
+            'enabled' => 'isModEnabled("eventorganization")', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
297
+            'perms' => '$user->hasRight("eventorganization", "write")', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
298 298
             'target' => '',
299
-            'user' => 2,                                // 0=Menu for internal users, 1=external users, 2=both
299
+            'user' => 2, // 0=Menu for internal users, 1=external users, 2=both
300 300
         );
301 301
         $this->menu[$r++] = array(
302
-            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganizationconforbooth',        // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
303
-            'type' => 'left',                           // This is a Left menu entry
302
+            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganizationconforbooth', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
303
+            'type' => 'left', // This is a Left menu entry
304 304
             'titre' => 'List',
305 305
             'url' => '/eventorganization/conferenceorbooth_list.php?mainmenu=project',
306
-            'langs' => 'eventorganization',         // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
306
+            'langs' => 'eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
307 307
             'position' => 1000 + $r,
308
-            'enabled' => 'isModEnabled("eventorganization")',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
309
-            'perms' => '$user->hasRight("eventorganization", "read")',                          // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
308
+            'enabled' => 'isModEnabled("eventorganization")', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
309
+            'perms' => '$user->hasRight("eventorganization", "read")', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
310 310
             'target' => '',
311
-            'user' => 2,                                // 0=Menu for internal users, 1=external users, 2=both
311
+            'user' => 2, // 0=Menu for internal users, 1=external users, 2=both
312 312
         );
313 313
         /* END MODULEBUILDER LEFTMENU CONFERENCEORBOOTH */
314 314
 
@@ -326,8 +326,8 @@  discard block
 block discarded – undo
326 326
         $keyforelement = 'conferenceorboothattendee';
327 327
         include DOL_DOCUMENT_ROOT . '/core/commonfieldsinexport.inc.php';
328 328
         $this->export_entities_array[$r]['t.fk_invoice'] = 'invoice';
329
-        unset($this->export_fields_array[$r]['t.fk_project']);  // Remove field so we can add it at end just after
330
-        unset($this->export_fields_array[$r]['t.fk_soc']);  // Remove field so we can add it at end just after
329
+        unset($this->export_fields_array[$r]['t.fk_project']); // Remove field so we can add it at end just after
330
+        unset($this->export_fields_array[$r]['t.fk_soc']); // Remove field so we can add it at end just after
331 331
         $this->export_fields_array[$r]['t.fk_invoice'] = 'InvoiceId';
332 332
         $this->export_fields_array[$r]['t.fk_project'] = 'ProjectId';
333 333
         $this->export_fields_array[$r]['p.ref'] = 'ProjectRef';
@@ -359,16 +359,16 @@  discard block
 block discarded – undo
359 359
         /* BEGIN MODULEBUILDER EXPORT CONFERENCEORBOOTH */
360 360
         $langs->load("eventorganization");
361 361
         $this->export_code[$r] = $this->rights_class . '_' . $r;
362
-        $this->export_label[$r] = 'ListOfConfOrBoothOfEvent';   // Translation key (used only if key ExportDataset_xxx_z not found)
362
+        $this->export_label[$r] = 'ListOfConfOrBoothOfEvent'; // Translation key (used only if key ExportDataset_xxx_z not found)
363 363
         $this->export_icon[$r] = 'conferenceorbooth';
364 364
         // Define $this->export_fields_array, $this->export_TypeFields_array and $this->export_entities_array
365 365
         $keyforclass = 'ConferenceOrBooth';
366 366
         $keyforclassfile = '/eventorganization/class/conferenceorbooth.class.php';
367 367
         $keyforelement = 'conferenceorbooth';
368 368
         include DOL_DOCUMENT_ROOT . '/core/commonfieldsinexport.inc.php';
369
-        unset($this->export_fields_array[$r]['t.fk_action']);   // Remove field so we can add it at end just after
370
-        unset($this->export_fields_array[$r]['t.fk_project']);  // Remove field so we can add it at end just after
371
-        unset($this->export_fields_array[$r]['t.fk_soc']);  // Remove field so we can add it at end just after
369
+        unset($this->export_fields_array[$r]['t.fk_action']); // Remove field so we can add it at end just after
370
+        unset($this->export_fields_array[$r]['t.fk_project']); // Remove field so we can add it at end just after
371
+        unset($this->export_fields_array[$r]['t.fk_soc']); // Remove field so we can add it at end just after
372 372
         $this->export_fields_array[$r]['t.fk_action'] = 'ConferenceOrBoothFormatID';
373 373
         $this->export_fields_array[$r]['ca.code'] = 'ConferenceOrBoothFormatCode';
374 374
         $this->export_fields_array[$r]['ca.libelle'] = 'ConferenceOrBoothFormatLabel';
Please login to merge, or discard this patch.