Download & Extend

Position of Save and Delete buttons

Project:Taxonomy menu
Version:6.x-2.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

A normal vocabulary edit page (without TM installed) has the Save button first, followed by the Delete button.
This module seems to change that around (so that Delete comes first) on line 68 of taxonomy_menu.module...

I think this should be changed back to how Drupal had it before, to save confusion.

Comments

#1

I agree with consistency. Otherwise users will delete accidentally.

#2

Version:6.x-2.0» 6.x-2.x-dev
Status:active» needs review

Didn't have time to create a patch before (on my way out to lunch), so here it is now...

EDIT: Oops, made the patch the wrong way around, see patch below instead :)

AttachmentSizeStatusTest resultOperations
taxonomy_menu-403022-2.patch820 bytesIgnored: Check issue status.NoneNone

#3

Try this instead...

AttachmentSizeStatusTest resultOperations
taxonomy_menu-403022-3.patch820 bytesIgnored: Check issue status.NoneNone

#4

Thanks BWPanda. I definitely agree and will commit tonight. Can someone else also please test so we can move it to RTBC?

#5

Status:needs review» fixed

This is part of the latest DEV that will be availale on 3/16. Please test and I will add to stable.

#6

Version:6.x-2.x-dev» 6.x-2.1
Status:fixed» needs review

I'm updates this module, but positions still old.See attach
I'm added line 70 to taxonomy_menu.module $form['taxonomy_menu']['#weight'] = 9;

(because VTN Nodes consist in lines 582-584

// this is ugly, but it is even worth to have the Save/Delete buttons before the end
// (and if you know a cleaner way, post an issue with the solution!)
$form['submit']['#weight'] = 10;
$form['delete']['#weight'] = 11;
break;
)

AttachmentSizeStatusTest resultOperations
shot00345.jpg43.96 KBIgnored: Check issue status.NoneNone

#7

Version:6.x-2.1» 6.x-2.x-dev

If you are using version 2.1 you've not updated the module to 2.x-dev which is where this patch was applied according to developer comments in this thread.

#8

Status:needs review» fixed

#9

VeryMisunderstood but http://drupal.org/node/410170 posted
"#403022: Position of Save and Delete buttons by BWPanda (http://drupal.org/user/289407) Change the order of buttons."

#10

Version:6.x-2.x-dev» 6.x-2.1
Status:fixed» active

Ah, you're right. I did not realize there was a new release. I'll remark for you.

Evidentally Pav@drupal.ru is still seeing this issue

#11

Status:active» postponed (maintainer needs more info)

So this is a conflict with another module? Taxonomy menu sets the weights like this:

<?php
// move the buttons to the bottom of the form
$form['submit']['#weight'] = 49;
$form['delete']['#weight'] = 50;
?>

#12

indytechcook, jes i'm commented this lines and added line 70 to taxonomy_menu.module $form['taxonomy_menu']['#weight'] = 9;

#13

Status:postponed (maintainer needs more info)» fixed

This has been implemented in both current stable and .dev versions. Marking as fixed until further notice.

#14

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here