Comments

kid_icarus’s picture

Status: Active » Needs review
StatusFileSize
new547 bytes

Here's my first crack at it :)

joachim’s picture

Title: don't show 'save flag order' when there are no flags » hide 'save flag order' with no flags; hide button and weight with 1 flag
Issue tags: +Needs backport to D7
StatusFileSize
new2.5 KB

Looks good!

I tried this and it works perfectly. Except when I added one flag, I realized we should change things in that case too -- compare with the vocabulary admin page.

Here's a patch that extends the work you've done.

Status: Needs review » Needs work

The last submitted patch, 1726806.2.flag_.flag-admin-hide-button-weights.patch, failed testing.

joachim’s picture

Status: Needs work » Needs review
StatusFileSize
new2.63 KB

Ah I see what went wrong there.

kid_icarus’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me, I see what you did with the entire logic changing to "if there's more than one". Totally sensible.

joachim’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks for your help!

Issue #1726806 by kid_icarus, joachim: Fixed 'save flag order' button and flag weight showing when there are fewer than 2 flags.

joachim’s picture

Version: 7.x-3.x-dev » 7.x-2.x-dev
Status: Fixed » Patch (to be ported)
Issue tags: -Novice, -Needs backport to D7

And now on the 7.x-2.x branch.

socketwench’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new2.6 KB

*backports*

joachim’s picture

Status: Needs review » Needs work

Doesn't quite look right I'm afraid -- the weights get shown below the table and the columns go wrong.

socketwench’s picture

StatusFileSize
new2.6 KB
+++ b/includes/flag.admin.incundefined
@@ -72,15 +79,17 @@ function theme_flag_admin_listing($variables) {
+    if (count($flag) > 1) {

Should have been $flags, not $flag.

socketwench’s picture

Status: Needs work » Needs review
joachim’s picture

Status: Needs review » Fixed

Tests pass and patch works fine. Committed!

Issue #1726806 by socketwench, kid_icarus, joachim: Fixed 'save flag order' button and flag weight showing when there are fewer than 2 flags.

joachim’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev
Status: Fixed » Patch (to be ported)

To keep the two 2.x branches in sync we should backport this.

tayzlor’s picture

StatusFileSize
new1.99 KB

Here's a 6.x-2.x patch

tayzlor’s picture

Status: Patch (to be ported) » Needs review
joachim’s picture

Thanks!

Here's a slight correction to that patch -- was missing the tweak to the table header when there's no tabledrag.

joachim’s picture

Status: Needs review » Fixed

Committed.

Thanks to everyone who's worked on this!

Beta 9 on the way soon :)

Issue #1726806 by tayzlor, kid_icarus, joachim: Fixed 'save flag order' button and flag weight showing when there are fewer than 2 flags.

Status: Fixed » Closed (fixed)

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