[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gallery-checkins
Subject:    [Gallery-checkins] CVS: gallery2/include/classes GalleryList.class,1.6,1.7
From:       Bharat Mediratta <bharat () users ! sourceforge ! net>
Date:       2002-05-24 7:02:20
[Download RAW message or body]

Update of /cvsroot/gallery/gallery2/include/classes
In directory usw-pr-cvs1:/tmp/cvs-serv12985

Modified Files:
	GalleryList.class 
Log Message:
Fixed a bug where removeValue() was not marking parent as modified

Index: GalleryList.class
===================================================================
RCS file: /cvsroot/gallery/gallery2/include/classes/GalleryList.class,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- GalleryList.class	23 May 2002 09:50:02 -0000	1.6
+++ GalleryList.class	24 May 2002 07:02:18 -0000	1.7
@@ -190,12 +190,12 @@
     function removeValue($value) {
 	for ($i = 0; $i < count($this->_data); $i++) {
 	    if ($value == $this->_data[$i]) {
-		array_splice($this->_data, $i, 1);
-		return;
+		$this->_markModifiedInParent();
+		return array_splice($this->_data, $i, 1);
 	    }
 	}
 
-	return;
+	return null;
     }
 
     /**


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

__[ g a l l e r y - c h e c k i n s ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic