I thought this was kind of pointless, so here's a patch to fix it.

CommentFileSizeAuthor
dont_show_form_for_one_preset.patch950 bytesdmitrig01

Comments

yhahn’s picture

Assigned: Unassigned » yhahn
Status: Needs review » Needs work

Thanks for the patch dimitri : )

It's a nice and simple solution, but unfortunately there are some bigger issues at hand here that I would like to put to bed as part of this one. Part of the issues are historical but here is a quick overview:

  • Suppose there is only 1 preset and the user in question has admin access to the current space ($space->admin_access() == TRUE) but not enough permissions to control the actual feature settings of that space. We will in effect be showing her in some cases a blank form if we hide all preset options. Would it be better to replace the radio buttons with a message like "Your space will use preset X because it is the only option available" ?
  • Related and something of a somewhat larger UI task is that I would like to merge the spaces_basic_form() and the spaces_features_form() in a reasonable fashion. Currently these two are split up because of historical/permission granularity reasons but I don't see why they couldn't be merged into a single form that responds more actively to a user's permission levels.

Let me know what you think -- I'll probably be approaching these problems this weekend and if I can get to a nice stopping point I'll merge your patch in as well.

yhahn’s picture

Status: Needs work » Fixed

Committed now that spaces preset forms are in sane locations: http://drupal.org/cvs?commit=208458

Status: Fixed » Closed (fixed)

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