Projekt

Allgemein

Profil

GX-Bug #51704 » QuickEditShippingStatusFix.patch

Till Tepelmann, 19.05.2017 18:04

Unterschiede anzeigen:

src/GXMainComponents/Controllers/HttpView/AdminAjax/QuickEditOverviewAjaxController.inc.php (revision )
504 504
				'value' => $value['shipping_status_name']
505 505
			];
506 506
		}, $result);
507
		
507

  
508
		array_unshift($shipmentConfigured, [
509
			'id' => 0,
510
			'value' => TEXT_NONE
511
		]);
512
		
508 513
		return $shipmentConfigured;
509 514
	}
510 515
	
src/GXMainComponents/Extensions/QuickEdit/QuickEditOverviewColumns.inc.php (revision )
256 256
		                   ->get('shipping_status')
257 257
		                   ->result_array();
258 258
		
259
		return array_map(function ($value)
259
		$shipmentConfiguration = array_map(function ($value)
260 260
		{
261 261
			return [
262 262
				'id'    => $value['shipping_status_id'],
263 263
				'value' => $value['shipping_status_name']
264 264
			];
265 265
		}, $result);
266

  
267
		array_unshift($shipmentConfiguration, [
268
			'id' => 0,
269
			'value' => TEXT_NONE
270
		]);
271

  
272
		return $shipmentConfiguration;
266 273
	}
267 274
	
268 275
	
    (1-1/1)