Delete Records in found set only deletes records in view?

A place for users and developers of the Xataface to discuss and receive support.

Postby dtrimbur » Fri Nov 10, 2006 3:25 pm

It seems that if one tries to delete a large number of records (i.e. greater than the 30 in the list view) dataface only deletes the 30 not all the records in the found set, but reports that it deleted all the records in the set! (if I set the list view to display 100 records then it deletes the 100)

ps using dataface 0.6.9rc1
dtrimbur
 
Posts: 3
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Fri Nov 10, 2006 5:56 pm

Thanks for pointing this out.. looks like a bug... I'll take a look and have it corrected for the next release.

-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby geller » Sun Jul 29, 2007 1:16 pm

Hi Steve just following up on this one. This still appears to be happening in 6.12 (haven't upgraded yet) is it addressed in newer releases?

Cheers
Graham
geller
 
Posts: 26
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Mon Jul 30, 2007 10:23 am

Here is a fix for this. In the Dataface/DeleteForm.php file, look for the _buildDeleteQuery() method. You will see a section that looks like:
Code: Select all
$query['-limit'] = 9999;//isset($values['-limit']) ? $values['-limit'] : 1;
$query['-skip'] = 0;//isset($values['-skip']) ? $values['-skip'] : 0;


Change it to
Code: Select all
$query['-limit'] = 9999;         
$query['-skip'] = 0;


-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 37 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved