Delete an object (move it to trash) that has several locations

Author Message

Jerome Despatis

Friday 02 April 2010 2:17:48 am

Hi

I'd like to delete an object (Move it to trash or completely delete it according to user's wish).

But when I'm using the Remove button (that triggers ActionRemove in /kernel/content/action.php), it only (without asking the user if object has to be removed or not) deletes one location.

And only when the object has only one location left, then the Remove button asks if whether or not the object has to be moved to trash or has to be completely removed

For my needs, I'd like to directly move the object to trash or completely remove it (according to users's wish) whatever the number of locations this object may have...

Any idea on how to succeed this ?

Thanks

Jerome Despatis

Friday 02 April 2010 4:36:45 am

After many tries, I've added a bug report:

http://issues.ez.no/IssueView.php?Id=16572

I don't think it's possible to delete at once an object...

Now trying to delete all locations (except main) of an object and then use the ActionRemove or something like that...

If someone has a better idea, he/she's welcome !!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 00:49:18
Script start
Timing: Jan 30 2025 00:49:18
Module start 'layout'
Timing: Jan 30 2025 00:49:18
Module start 'content'
Timing: Jan 30 2025 00:49:18
Module end 'content'
Timing: Jan 30 2025 00:49:18
Script end

Main resources:

Total runtime0.0146 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.3906151.2422
Module start 'layout' 0.00540.0028 739.632836.7109
Module start 'content' 0.00820.0051 776.343890.0156
Module end 'content' 0.01330.0013 866.359429.9922
Script end 0.0146  896.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002617.4424140.0002
Check MTime0.00128.1162140.0001
Mysql Total
Database connection0.00075.095410.0007
Mysqli_queries0.002718.380330.0009
Looping result0.00000.096110.0000
Template Total0.00107.010.0010
Template load0.00085.300610.0008
Template processing0.00021.639910.0002
Override
Cache load0.00053.237410.0005
General
dbfile0.00128.505480.0002
String conversion0.00000.053740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs