Book outline confirm form uses wrong arguments

webernet - August 13, 2007 - 15:07
Project:Drupal
Version:6.x-dev
Component:book.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The confirm form for removing a page from a book outline uses the wrong arguments.

Attached patch corrects the arguments.

AttachmentSize
patch_159.txt811 bytes

#1

pwolanin - August 13, 2007 - 17:18

I see the bug also, and this patch fixes it. However, warning text like that used in function book_form_node_delete_confirm_alter() should be added as well if the page has children.

#2

webernet - August 13, 2007 - 18:06

Now notifies you that "Any child pages will be relocated automatically."

AttachmentSize
patch_160.txt 860 bytes

#3

pwolanin - August 13, 2007 - 21:45

I was thinking something more like this in terms of varying the description depending on whether the node has children.

AttachmentSize
book_remove_confirm_3.patch 1.18 KB

#4

webernet - August 13, 2007 - 23:05

Some additional fine tunning of the wording.

AttachmentSize
patch_161.txt 1.16 KB

#5

pwolanin - August 13, 2007 - 23:15
Status:needs review» reviewed & tested by the community

Looks fine, applies cleanly, and works. Much more informative than before.

#6

Gábor Hojtsy - August 16, 2007 - 12:39
Status:reviewed & tested by the community» needs work

I would not say "This may make it difficult to re-create the existing hierarchy." is anywhere close to informative. This suggests an uncertain outcome of the action, which is not something one can decide to agree or not. Can we be more specific, ie. not uncertain?

#7

pwolanin - August 17, 2007 - 02:12

how about something like:

'%title has associated child pages, which will be relocated automatically to maintain their connection to the book.  In order to re-create the existing hierarchy, %title may be added again using the Outline tab, and each of its former child pages relocated manually.'

It's wordy, but perhaps more accurate.

#8

Gábor Hojtsy - August 17, 2007 - 07:42

It is more accurate, but I needed to stop on the "in order to" part and reread multiple times to get it. I think you mean:

'%title has associated child pages, which will be relocated automatically to maintain their connection to the book. If you'd like to recreate the hierarchy used before, %title may be added again using the Outline tab, and each of its former child pages relocated manually.'

The "existing" word without (to me) proper time information mislead me actually. I am not a native English speaker, so the above might not be correct. Feel free to fix or come up with better ideas.

#9

pwolanin - August 17, 2007 - 21:05

'%title has associated child pages, which will be relocated automatically to maintain their connection to the book. To recreate the hierarchy (as it was before removing this page), %title may be added again using the Outline tab, and each of its former child pages relocated manually.'

that maybe?

#10

Gábor Hojtsy - August 17, 2007 - 21:07

Yes, this sounds much better.

#11

pwolanin - August 17, 2007 - 21:45
Status:needs work» needs review

patch with that wording attached.

AttachmentSize
book_remove_confirm_5.patch 1.32 KB

#12

webernet - August 18, 2007 - 02:41

%title has associated child pages, which will be relocated automatically to maintain their connection to the book. To recreate the hierarchy (as it was before removing this page), %title may be added again using the Outline tab, and each of its former child pages will need to be relocated manually.

Slightly clearer in my opinion.

AttachmentSize
patch_165.txt 1.31 KB

#13

pwolanin - August 18, 2007 - 02:47
Status:needs review» reviewed & tested by the community

patch applies - looks fine and works.

#14

Gábor Hojtsy - August 18, 2007 - 11:37
Status:reviewed & tested by the community» fixed

Thanks, committed!

#15

Anonymous - September 4, 2007 - 13:01
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.