Ejemplo n.º 1
0
				$lAdmin->AddUpdateError(Loc::getMessage('SALE_LOCATION_L_ITEM_SAVE_ERROR', array('#ITEM#' => $id)).": <br />".$e->getMessage().'<br />', $id);
				$DB->Rollback();
			}

			$DB->Commit();
		}

		Location\LocationTable::resetLegacyPath();
	}

	// group DELETE
	if(($ids = $lAdmin->GroupAction()) && $userIsAdmin)
	{
		// all by filter or certain ids
		if($_REQUEST['action_target'] == 'selected') // get all ids if they were not specified (user choice was "for all")
			$ids = Helper::getIdsByFilter($listParams['filter']);

		@set_time_limit(0);

		foreach($ids as $id)
		{
			if(!($id = intval($id)))
				continue;

			if($_REQUEST['action'] == 'delete')
			{
				$DB->StartTransaction();

				try
				{
					$res = Helper::delete($id, true);