english/administrator/components/com_categories/controllers/categories.php
/**
	 * Save the manual order inputs from the categories list page.
	 *
	 * @return	void
	 * @since	1.6
	 */
Save the manual order inputs from the categories list page.
Save the manual order inputs from the categories list page .
public function saveorder()
	{
		JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
		$order	= JRequest::getVar('order',	null, 'post', 'array');
		$originalOrder = explode(',', JRequest::getString('original_order_values'));
		if (!($order === $originalOrder)) {
			parent::saveorder();
		} else {
			$this->setRedirect(JRoute::_('index.php?option='.$this->option.'&view='.$this->view_list, false));
			return true;
		}
	}
public function saveorder ( ) { JRequest :: checkToken ( ) or jexit ( JText :: _ ( 'JINVALID_TOKEN' ) ) ; $ order = JRequest :: getVar ( 'order' , null , 'post' , 'array' ) ; $ originalOrder = explode ( ',' , JRequest :: getString ( 'original_order_values' ) ) ; if ( ! ( $ order === $ originalOrder ) ) { parent :: saveorder ( ) ; } else { $ this -> setRedirect ( JRoute :: _ ( 'index.php?option=' . $ this -> option . '&view=' . $ this -> view_list , false ) ) ; return true ; } }
Save the manual order inputs from the categories list page.
Save the manual order inputs from the categories list page .
// Get the arrays from the Request // Make sure something has changed // Nothing to reorder