Completed
Branch develop (4bdd84)
by
unknown
23:52
created
htdocs/expedition/class/expedition.class.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 		if (getDolGlobalString('EXPEDITION_ADDON_NUMBER')) {
373 373
 			$mybool = false;
374 374
 
375
-			$file = getDolGlobalString('EXPEDITION_ADDON_NUMBER') . ".php";
375
+			$file = getDolGlobalString('EXPEDITION_ADDON_NUMBER').".php";
376 376
 			$classname = getDolGlobalString('EXPEDITION_ADDON_NUMBER');
377 377
 
378 378
 			// Include file with class
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
 				$this->ref_ext		    = $obj->ref_ext;
708 708
 				$this->status               = $obj->fk_statut;
709 709
 				$this->statut               = $this->status; // Deprecated
710
-				$this->signed_status		= $obj->signed_status;
710
+				$this->signed_status = $obj->signed_status;
711 711
 				$this->user_author_id       = $obj->fk_user_author;
712 712
 				$this->fk_user_author       = $obj->fk_user_author;
713 713
 				$this->date_creation        = $this->db->jdate($obj->date_creation);
@@ -1047,7 +1047,7 @@  discard block
 block discarded – undo
1047 1047
 		// If product need a batch number, we should not have called this function but addline_batch instead.
1048 1048
 		// If this happen, we may have a bug in card.php page
1049 1049
 		if (isModEnabled('productbatch') && !empty($orderline->fk_product) && !empty($orderline->product_tobatch)) {
1050
-			$this->error = 'ADDLINE_WAS_CALLED_INSTEAD_OF_ADDLINEBATCH '.$orderline->id.' '.$orderline->fk_product;	//
1050
+			$this->error = 'ADDLINE_WAS_CALLED_INSTEAD_OF_ADDLINEBATCH '.$orderline->id.' '.$orderline->fk_product; //
1051 1051
 			return -4;
1052 1052
 		}
1053 1053
 
@@ -1625,8 +1625,8 @@  discard block
 block discarded – undo
1625 1625
 							$this->db->commit();
1626 1626
 
1627 1627
 							// Delete record into ECM index (Note that delete is also done when deleting files with the dol_delete_dir_recursive
1628
-							$this->deleteEcmFiles(0);	 // Deleting files physically is done later with the dol_delete_dir_recursive
1629
-							$this->deleteEcmFiles(1);	 // Deleting files physically is done later with the dol_delete_dir_recursive
1628
+							$this->deleteEcmFiles(0); // Deleting files physically is done later with the dol_delete_dir_recursive
1629
+							$this->deleteEcmFiles(1); // Deleting files physically is done later with the dol_delete_dir_recursive
1630 1630
 
1631 1631
 							// We delete PDFs
1632 1632
 							$ref = dol_sanitizeFileName($this->ref);
@@ -1700,7 +1700,7 @@  discard block
 block discarded – undo
1700 1700
 		$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product as p ON p.rowid = cd.fk_product";
1701 1701
 		$sql .= " WHERE ed.fk_expedition = ".((int) $this->id);
1702 1702
 		$sql .= " AND ed.fk_elementdet = cd.rowid";
1703
-		$sql .= " ORDER BY cd.rang, ed.fk_elementdet";		// We need after a break on fk_elementdet but when there is no break on fk_elementdet, cd.rang is same so we can add it as first order criteria.
1703
+		$sql .= " ORDER BY cd.rang, ed.fk_elementdet"; // We need after a break on fk_elementdet but when there is no break on fk_elementdet, cd.rang is same so we can add it as first order criteria.
1704 1704
 
1705 1705
 		dol_syslog(get_class($this)."::fetch_lines", LOG_DEBUG);
1706 1706
 		$resql = $this->db->query($sql);
@@ -1729,13 +1729,13 @@  discard block
 block discarded – undo
1729 1729
 
1730 1730
 
1731 1731
 				if ($originline > 0 && $originline == $obj->fk_elementdet) {
1732
-					'@phan-var-force ExpeditionLigne $line';  // $line from previous loop
1732
+					'@phan-var-force ExpeditionLigne $line'; // $line from previous loop
1733 1733
 					$line->entrepot_id = 0; // entrepod_id in details_entrepot
1734 1734
 					$line->qty_shipped += $obj->qty_shipped;
1735 1735
 				} else {
1736
-					$line = new ExpeditionLigne($this->db);		// new group to start
1737
-					$line->entrepot_id    	= $obj->fk_entrepot;	// this is a property of a shipment line
1738
-					$line->qty_shipped    	= $obj->qty_shipped;	// this is a property of a shipment line
1736
+					$line = new ExpeditionLigne($this->db); // new group to start
1737
+					$line->entrepot_id    	= $obj->fk_entrepot; // this is a property of a shipment line
1738
+					$line->qty_shipped    	= $obj->qty_shipped; // this is a property of a shipment line
1739 1739
 				}
1740 1740
 
1741 1741
 				$detail_entrepot              = new stdClass();
@@ -1748,13 +1748,13 @@  discard block
 block discarded – undo
1748 1748
 				$line->rowid            = $obj->line_id; // TODO deprecated
1749 1749
 				$line->id               = $obj->line_id;
1750 1750
 
1751
-				$line->fk_origin = 'orderline';	// TODO deprecated, we already have element_type that can be use to guess type of line
1751
+				$line->fk_origin = 'orderline'; // TODO deprecated, we already have element_type that can be use to guess type of line
1752 1752
 
1753
-				$line->fk_element 		= $obj->fk_element;
1754
-				$line->origin_id 		= $obj->fk_element;
1755
-				$line->fk_elementdet 	= $obj->fk_elementdet;
1756
-				$line->origin_line_id 	= $obj->fk_elementdet;
1757
-				$line->element_type 	= $obj->element_type;
1753
+				$line->fk_element = $obj->fk_element;
1754
+				$line->origin_id = $obj->fk_element;
1755
+				$line->fk_elementdet = $obj->fk_elementdet;
1756
+				$line->origin_line_id = $obj->fk_elementdet;
1757
+				$line->element_type = $obj->element_type;
1758 1758
 
1759 1759
 				$line->fk_expedition    = $this->id; // id of parent
1760 1760
 
@@ -1764,8 +1764,8 @@  discard block
 block discarded – undo
1764 1764
 				$line->ref = $obj->product_ref; // TODO deprecated
1765 1765
 				$line->product_ref = $obj->product_ref;
1766 1766
 				$line->product_label = $obj->product_label;
1767
-				$line->libelle        	= $obj->product_label; // TODO deprecated
1768
-				$line->product_barcode  = $obj->product_barcode; // Barcode number product
1767
+				$line->libelle = $obj->product_label; // TODO deprecated
1768
+				$line->product_barcode = $obj->product_barcode; // Barcode number product
1769 1769
 				$line->product_tosell = $obj->product_tosell;
1770 1770
 				$line->product_tobuy = $obj->product_tobuy;
1771 1771
 				$line->product_tobatch = $obj->product_tobatch;
@@ -2015,7 +2015,7 @@  discard block
 block discarded – undo
2015 2015
 		}
2016 2016
 		$result .= $linkend;
2017 2017
 		global $action;
2018
-		$hookmanager->initHooks(array($this->element . 'dao'));
2018
+		$hookmanager->initHooks(array($this->element.'dao'));
2019 2019
 		$parameters = array('id' => $this->id, 'getnomurl' => &$result);
2020 2020
 		$reshook = $hookmanager->executeHooks('getNomUrl', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
2021 2021
 		if ($reshook > 0) {
@@ -2064,9 +2064,9 @@  discard block
 block discarded – undo
2064 2064
 			$statusType = 'status9';
2065 2065
 		}
2066 2066
 
2067
-		$signed_label = ' (' . $this->getLibSignedStatus() . ')';
2068
-		$status_label = $this->signed_status ? $labelStatus . $signed_label : $labelStatus;
2069
-		$status_label_short = $this->signed_status ? $labelStatusShort . $signed_label : $labelStatusShort;
2067
+		$signed_label = ' ('.$this->getLibSignedStatus().')';
2068
+		$status_label = $this->signed_status ? $labelStatus.$signed_label : $labelStatus;
2069
+		$status_label_short = $this->signed_status ? $labelStatusShort.$signed_label : $labelStatusShort;
2070 2070
 
2071 2071
 		return dolGetStatus($status_label, $status_label_short, '', $statusType, $mode);
2072 2072
 	}
@@ -2165,7 +2165,7 @@  discard block
 block discarded – undo
2165 2165
 			$line->fk_product = $this->commande->lines[$xnbp]->fk_product;
2166 2166
 
2167 2167
 			$line->weight = 1.123456;
2168
-			$line->weight_units = 0;		// kg
2168
+			$line->weight_units = 0; // kg
2169 2169
 
2170 2170
 			$line->volume = 2.34567;
2171 2171
 			$line->volume_unit = 0;
@@ -2355,12 +2355,12 @@  discard block
 block discarded – undo
2355 2355
 				if ($shipments_match_order) {
2356 2356
 					dol_syslog("Qty for the ".count($order->lines)." lines of the origin order is same than qty for lines in the shipment we close (shipments_match_order is true), with new status Expedition::STATUS_CLOSED=".self::STATUS_CLOSED.', so we close order');
2357 2357
 					// We close the order
2358
-					$order->cloture($user);		// Note this may also create an invoice if module workflow ask it
2358
+					$order->cloture($user); // Note this may also create an invoice if module workflow ask it
2359 2359
 				}
2360 2360
 			}
2361 2361
 
2362
-			$this->statut = self::STATUS_CLOSED;	// Will be revert to STATUS_VALIDATED at end if there is a rollback
2363
-			$this->status = self::STATUS_CLOSED;	// Will be revert to STATUS_VALIDATED at end if there is a rollback
2362
+			$this->statut = self::STATUS_CLOSED; // Will be revert to STATUS_VALIDATED at end if there is a rollback
2363
+			$this->status = self::STATUS_CLOSED; // Will be revert to STATUS_VALIDATED at end if there is a rollback
2364 2364
 
2365 2365
 			// If stock increment is done on closing
2366 2366
 			if (!$error && isModEnabled('stock') && getDolGlobalString('STOCK_CALCULATE_ON_SHIPMENT_CLOSE')) {
@@ -2409,7 +2409,7 @@  discard block
 block discarded – undo
2409 2409
 
2410 2410
 		$error = 0;
2411 2411
 
2412
-		require_once DOL_DOCUMENT_ROOT . '/product/stock/class/mouvementstock.class.php';
2412
+		require_once DOL_DOCUMENT_ROOT.'/product/stock/class/mouvementstock.class.php';
2413 2413
 
2414 2414
 		$langs->load("agenda");
2415 2415
 
@@ -2419,14 +2419,14 @@  discard block
 block discarded – undo
2419 2419
 		$sql .= " e.ref,";
2420 2420
 		$sql .= " edb.rowid as edbrowid, edb.eatby, edb.sellby, edb.batch, edb.qty as edbqty, edb.fk_origin_stock,";
2421 2421
 		$sql .= " cd.rowid as cdid, ed.rowid as edid";
2422
-		$sql .= " FROM " . MAIN_DB_PREFIX . "commandedet as cd,";
2423
-		$sql .= " " . MAIN_DB_PREFIX . "expeditiondet as ed";
2424
-		$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "expeditiondet_batch as edb on edb.fk_expeditiondet = ed.rowid";
2425
-		$sql .= " INNER JOIN " . MAIN_DB_PREFIX . "expedition as e ON ed.fk_expedition = e.rowid";
2426
-		$sql .= " WHERE ed.fk_expedition = " . ((int) $this->id);
2422
+		$sql .= " FROM ".MAIN_DB_PREFIX."commandedet as cd,";
2423
+		$sql .= " ".MAIN_DB_PREFIX."expeditiondet as ed";
2424
+		$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."expeditiondet_batch as edb on edb.fk_expeditiondet = ed.rowid";
2425
+		$sql .= " INNER JOIN ".MAIN_DB_PREFIX."expedition as e ON ed.fk_expedition = e.rowid";
2426
+		$sql .= " WHERE ed.fk_expedition = ".((int) $this->id);
2427 2427
 		$sql .= " AND cd.rowid = ed.fk_elementdet";
2428 2428
 
2429
-		dol_syslog(get_class($this) . "::valid select details", LOG_DEBUG);
2429
+		dol_syslog(get_class($this)."::valid select details", LOG_DEBUG);
2430 2430
 		$resql = $this->db->query($sql);
2431 2431
 		if ($resql) {
2432 2432
 			$cpt = $this->db->num_rows($resql);
@@ -2440,7 +2440,7 @@  discard block
 block discarded – undo
2440 2440
 				if ($qty <= 0 || ($qty < 0 && !getDolGlobalInt('SHIPMENT_ALLOW_NEGATIVE_QTY'))) {
2441 2441
 					continue;
2442 2442
 				}
2443
-				dol_syslog(get_class($this) . "::valid movement index " . $i . " ed.rowid=" . $obj->rowid . " edb.rowid=" . $obj->edbrowid);
2443
+				dol_syslog(get_class($this)."::valid movement index ".$i." ed.rowid=".$obj->rowid." edb.rowid=".$obj->edbrowid);
2444 2444
 
2445 2445
 				$mouvS = new MouvementStock($this->db);
2446 2446
 				$mouvS->origin = &$this;
Please login to merge, or discard this patch.
htdocs/comm/action/card.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 $offsetunit = GETPOST('offsetunittype_duration', 'aZ09');
83 83
 $remindertype = GETPOST('selectremindertype', 'aZ09');
84 84
 $modelmail = GETPOSTINT('actioncommsendmodel_mail');
85
-$complete = GETPOST('complete', 'alpha');	// 'na' must be allowed
85
+$complete = GETPOST('complete', 'alpha'); // 'na' must be allowed
86 86
 $private = GETPOST('private', 'alphanohtml');
87 87
 if ($complete == 'na' || $complete == -2) {
88 88
 	$complete = -1;
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
 		$datef = dol_mktime(GETPOSTINT("p2hour"), GETPOSTINT("p2min"), GETPOSTINT("apsec"), GETPOSTINT("p2month"), GETPOSTINT("p2day"), GETPOSTINT("p2year"), 'tzuserrel');
341 341
 	}
342 342
 	//set end date to now if percentage is set to 100 and end date not set
343
-	$datef = (!$datef && $percentage == 100)?dol_now():$datef;
343
+	$datef = (!$datef && $percentage == 100) ?dol_now() : $datef;
344 344
 
345 345
 	// Check parameters
346 346
 	if (!$datef && $percentage == 100) {
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
 	if (GETPOSTISSET("contactid")) {
451 451
 		$object->contact_id = GETPOSTINT("contactid");
452 452
 
453
-		$object->contact = $contact;	// For backward compatibility
453
+		$object->contact = $contact; // For backward compatibility
454 454
 	}
455 455
 
456 456
 	if (GETPOSTINT('socid') > 0) {
@@ -630,12 +630,12 @@  discard block
 block discarded – undo
630 630
 			if ($selectedrecurrulefreq == 'WEEKLY' && !empty($selectedrecurrulebyday)) {
631 631
 				$firstdatearray = dol_get_first_day_week(GETPOSTINT("apday"), GETPOSTINT("apmonth"), GETPOSTINT("apyear"));
632 632
 				$datep = dol_mktime($fulldayevent ? '00' : GETPOSTINT("aphour"), $fulldayevent ? '00' : GETPOSTINT("apmin"), $fulldayevent ? '00' : GETPOSTINT("apsec"), $firstdatearray['month'], $firstdatearray['first_day'], $firstdatearray['year'], $tzforfullday ? $tzforfullday : 'tzuserrel');
633
-				$datep = dol_time_plus_duree($datep, $selectedrecurrulebyday + 6, 'd');//We begin the week after
633
+				$datep = dol_time_plus_duree($datep, $selectedrecurrulebyday + 6, 'd'); //We begin the week after
634 634
 				$dayoffset = 7;
635 635
 				$monthoffset = 0;
636 636
 			} elseif ($selectedrecurrulefreq == 'MONTHLY' && !empty($selectedrecurrulebymonthday)) {
637 637
 				$firstday = $selectedrecurrulebymonthday;
638
-				$firstmonth = GETPOST("apday") > $selectedrecurrulebymonthday ? GETPOSTINT("apmonth") + 1 : GETPOSTINT("apmonth");//We begin the week after
638
+				$firstmonth = GETPOST("apday") > $selectedrecurrulebymonthday ? GETPOSTINT("apmonth") + 1 : GETPOSTINT("apmonth"); //We begin the week after
639 639
 				$datep = dol_mktime($fulldayevent ? '00' : GETPOSTINT("aphour"), $fulldayevent ? '00' : GETPOSTINT("apmin"), $fulldayevent ? '00' : GETPOSTINT("apsec"), $firstmonth, $firstday, GETPOSTINT("apyear"), $tzforfullday ? $tzforfullday : 'tzuserrel');
640 640
 				$dayoffset = 0;
641 641
 				$monthoffset = 1;
@@ -740,9 +740,9 @@  discard block
 block discarded – undo
740 740
 
741 741
 				// increment date for recurrent events
742 742
 				$datep = dol_time_plus_duree($datep, $dayoffset, 'd');
743
-				$datep = dol_time_plus_duree($datep, $monthoffset, 'm');  // @phan-suppress-current-line PhanPluginSuspiciousParamOrder
743
+				$datep = dol_time_plus_duree($datep, $monthoffset, 'm'); // @phan-suppress-current-line PhanPluginSuspiciousParamOrder
744 744
 				$datef = dol_time_plus_duree($datef, $dayoffset, 'd');
745
-				$datef = dol_time_plus_duree($datef, $monthoffset, 'm');  // @phan-suppress-current-line PhanPluginSuspiciousParamOrder
745
+				$datef = dol_time_plus_duree($datef, $monthoffset, 'm'); // @phan-suppress-current-line PhanPluginSuspiciousParamOrder
746 746
 			}
747 747
 		}
748 748
 		if (!empty($backtopage) && !$error) {
@@ -1085,7 +1085,7 @@  discard block
 block discarded – undo
1085 1085
 if (empty($reshook) && GETPOST('actionmove', 'alpha') == 'mupdate') {
1086 1086
 	$error = 0;
1087 1087
 
1088
-	$shour = (int) dol_print_date($object->datep, "%H", 'tzuserrel');		// We take the date visible by user $newdate is also date visible by user.
1088
+	$shour = (int) dol_print_date($object->datep, "%H", 'tzuserrel'); // We take the date visible by user $newdate is also date visible by user.
1089 1089
 	$smin = (int) dol_print_date($object->datep, "%M", 'tzuserrel');
1090 1090
 
1091 1091
 	$newdate = GETPOST('newdate', 'alpha');
@@ -1259,7 +1259,7 @@  discard block
 block discarded – undo
1259 1259
 								if (new_startdate > old_enddate) {
1260 1260
 									var timeDiff = old_enddate - old_startdate;
1261 1261
 									var new_enddate = new Date(new_startdate.getTime() + timeDiff);
1262
-									$("#p2").val(formatDate(new_enddate, "' . $langs->trans('FormatDateShortJavaInput') . '"));
1262
+									$("#p2").val(formatDate(new_enddate, "' . $langs->trans('FormatDateShortJavaInput').'"));
1263 1263
 									$("#p2day").val(new_enddate.getDate());
1264 1264
 									$("#p2month").val(new_enddate.getMonth() + 1);
1265 1265
 									$("#p2year").val(new_enddate.getFullYear());
@@ -1317,7 +1317,7 @@  discard block
 block discarded – undo
1317 1317
 		$default = getDolGlobalString('AGENDA_USE_EVENT_TYPE_DEFAULT', 'AC_RDV');
1318 1318
 		print img_picto($langs->trans("ActionType"), 'square', 'class="fawidth30 inline-block" style="color: #ddd;"');
1319 1319
 		$selectedvalue = GETPOSTISSET("actioncode") ? GETPOST("actioncode", 'aZ09') : ($object->type_code ? $object->type_code : $default);
1320
-		print $formactions->select_type_actions($selectedvalue, "actioncode", "systemauto", 0, -1, 0, 1);	// TODO Replace 0 with -2 in onlyautoornot
1320
+		print $formactions->select_type_actions($selectedvalue, "actioncode", "systemauto", 0, -1, 0, 1); // TODO Replace 0 with -2 in onlyautoornot
1321 1321
 		print '</td></tr>';
1322 1322
 	}
1323 1323
 
@@ -1650,7 +1650,7 @@  discard block
 block discarded – undo
1650 1650
 		}
1651 1651
 		//var_dump('origin='.$origin.' originid='.$originid.' hasPermissionOnLinkedObject='.$hasPermissionOnLinkedObject);
1652 1652
 
1653
-		if (! in_array($origin, array('societe', 'project', 'task', 'user'))) {
1653
+		if (!in_array($origin, array('societe', 'project', 'task', 'user'))) {
1654 1654
 			// We do not use link for object that already contains a hard coded field to make links with agenda events
1655 1655
 			print '<tr><td class="titlefieldcreate">'.$langs->trans("LinkedObject").'</td>';
1656 1656
 			print '<td colspan="3">';
@@ -1739,7 +1739,7 @@  discard block
 block discarded – undo
1739 1739
 						$("#addreminder").prop("checked", true);
1740 1740
 
1741 1741
 						// Set period with default reminder period
1742
-						$("[name=\"offsetvalue\"]").val("' . $reminderDefaultOffset . '");
1742
+						$("[name=\"offsetvalue\"]").val("' . $reminderDefaultOffset.'");
1743 1743
 						$("#select_offsetunittype_duration").select2("destroy");
1744 1744
 						$("#select_offsetunittype_duration").val("'.$reminderDefaultUnit.'");
1745 1745
 						$("#select_offsetunittype_duration").select2();
@@ -1836,7 +1836,7 @@  discard block
 block discarded – undo
1836 1836
 			$object->socpeopleassigned[$id] = array('id' => $tmpid);
1837 1837
 		}
1838 1838
 		$object->contact_id   = GETPOSTINT("contactid");
1839
-		$object->fk_project  = GETPOSTINT("projectid");
1839
+		$object->fk_project = GETPOSTINT("projectid");
1840 1840
 
1841 1841
 		$object->note_private = GETPOST("note", 'restricthtml');
1842 1842
 	}
@@ -1910,7 +1910,7 @@  discard block
 block discarded – undo
1910 1910
 									if (new_startdate > old_enddate) {
1911 1911
 										var timeDiff = old_enddate - old_startdate;
1912 1912
 										var new_enddate = new Date(new_startdate.getTime() + timeDiff);
1913
-										$("#p2").val(formatDate(new_enddate, "' . $langs->trans('FormatDateShortJavaInput') . '"));
1913
+										$("#p2").val(formatDate(new_enddate, "' . $langs->trans('FormatDateShortJavaInput').'"));
1914 1914
 										$("#p2day").val(new_enddate.getDate());
1915 1915
 										$("#p2month").val(new_enddate.getMonth() + 1);
1916 1916
 										$("#p2year").val(new_enddate.getFullYear());
@@ -1935,7 +1935,7 @@  discard block
 block discarded – undo
1935 1935
 		if ($backtopage) {
1936 1936
 			print '<input type="hidden" name="backtopage" value="'.($backtopage != '1' ? $backtopage : '').'">';
1937 1937
 		}
1938
-		if (!getDolGlobalString('AGENDA_USE_EVENT_TYPE') && ! preg_match('/^TICKET_MSG_PRIVATE/', $object->code)) {
1938
+		if (!getDolGlobalString('AGENDA_USE_EVENT_TYPE') && !preg_match('/^TICKET_MSG_PRIVATE/', $object->code)) {
1939 1939
 			print '<input type="hidden" name="actioncode" value="'.$object->type_code.'">';
1940 1940
 		}
1941 1941
 
@@ -2357,7 +2357,7 @@  discard block
 block discarded – undo
2357 2357
 					});
2358 2358
 			   })';
2359 2359
 			print '</script>'."\n";
2360
-			print '</div>';		// End of div for reminderparameters
2360
+			print '</div>'; // End of div for reminderparameters
2361 2361
 		}
2362 2362
 
2363 2363
 		print dol_get_fiche_end();
@@ -2629,7 +2629,7 @@  discard block
 block discarded – undo
2629 2629
 
2630 2630
 		// Priority
2631 2631
 		if (getDolGlobalString('AGENDA_SUPPORT_PRIORITY_IN_EVENTS')) {
2632
-			print '<tr><td class="nowrap" class="titlefield">' . $langs->trans("Priority") . '</td><td>';
2632
+			print '<tr><td class="nowrap" class="titlefield">'.$langs->trans("Priority").'</td><td>';
2633 2633
 			print($object->priority ? $object->priority : '');
2634 2634
 			print '</td></tr>';
2635 2635
 		}
Please login to merge, or discard this patch.