[Bug 666] New: HopObject.size() broken

View: New views
3 Messages — Rating Filter:   Alert me  

[Bug 666] New: HopObject.size() broken

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=666

           Summary: HopObject.size() broken
           Product: Helma
           Version: CVS trunk
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: HopObject Functionality
        AssignedTo: helma-dev@...
        ReportedBy: nostalgiker@...


return value of size() does not change when removing children of a collection.

e.g. this does not work as expected:

{{{
   res.debug('###pre');
   res.debug('size ' + forum.size());
   res.debug('children ' + forum.list());

   var len = forum.size();
   for (var i=len-1;i>=0;i--) {
      var comment = forum.get(i);
      comment.remove();
      forum.removeChild(comment);
   }
   res.debug('###post');
   res.debug('size ' + forum.size());
   res.debug('children ' + forum.list());

---------- output ---------
###pre
size 3
children Comment#51006863,Comment#51006313,Comment#51005791
###post
size 3
children
}}}

this works as expected in the official helma 1.6.3. release.

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 666] HopObject.size() broken

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=666





--- Comment #1 from s o <nostalgiker@...>  2009-05-25 14:47:56 ---
tested with oracle 10g and mysql 5.0

i first encountered the problem with generic ref collections ($id, $prototype),
but 'normal' collections (no matter the cachemode) are effected as well.

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 666] HopObject.size() broken

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=666


Hannes Wallnoefer <hannes@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |hannes@...
         Resolution|                            |FIXED
   Target Milestone|---                         |1.7.0




--- Comment #2 from Hannes Wallnoefer <hannes@...>  2009-05-27 13:59:49 ---
Should be fixed in svn.

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev