Index: /fCRUD.php =================================================================== --- /fCRUD.php (revision 448) +++ /fCRUD.php (revision 530) @@ -3,5 +3,5 @@ * Provides miscellaneous functionality for [http://en.wikipedia.org/wiki/Create,_read,_update_and_delete CRUD-like] pages * - * @copyright Copyright (c) 2007-2008 Will Bond + * @copyright Copyright (c) 2007-2009 Will Bond * @author Will Bond [wb] * @license http://flourishlib.com/license @@ -10,6 +10,7 @@ * @link http://flourishlib.com/fCRUD * - * @version 1.0.0b - * @changes 1.0.0b The initial implementation [wb, 2007-06-14] + * @version 1.0.0b2 + * @changes 1.0.0b2 Fixed a bug preventing loaded search values from being included in redirects [wb, 2009-03-18] + * @changes 1.0.0b The initial implementation [wb, 2007-06-14] */ class fCRUD @@ -201,5 +202,5 @@ } - if (self::getPreviousSearchValue($column) && fRequest::get($column, $cast_to, $default) === NULL) { + if (self::getPreviousSearchValue($column) && !fRequest::check($column)) { self::$search_values[$column] = self::getPreviousSearchValue($column); self::$loaded_values[$column] = self::$search_values[$column]; @@ -233,5 +234,5 @@ } - if (self::getPreviousSortColumn() && fRequest::get('sort') === NULL) { + if (self::getPreviousSortColumn() && !fRequest::check('sort')) { self::$sort_column = self::getPreviousSortColumn(); self::$loaded_values['sort'] = self::$sort_column; @@ -258,5 +259,5 @@ } - if (self::getPreviousSortDirection() && fRequest::get('dir') === NULL) { + if (self::getPreviousSortDirection() && !fRequest::check('dir')) { self::$sort_direction = self::getPreviousSortDirection(); self::$loaded_values['dir'] = self::$sort_direction; @@ -580,5 +581,5 @@ /** - * Copyright (c) 2007-2008 Will Bond + * Copyright (c) 2007-2009 Will Bond * * Permission is hereby granted, free of charge, to any person obtaining a copy