Closed (fixed)
Project:
Uniform
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
26 Mar 2012 at 04:18 UTC
Updated:
28 Aug 2012 at 17:31 UTC
Jump to comment: Most recent file
To replicate the problem.
Go to Structure > Content Types and click Manage Display for a content type.
On a Image field click the edit Image Style icon.
Uniform styles are applied to the loaded form.
I've attached a patch which fixes the problem
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | uniform-uniform_problem_on_user_edit_pages-1500380.patch | 1.51 KB | chrlvclaudiu |
| #1 | uniform.patch | 830 bytes | benjy |
| uniform.patch | 789 bytes | benjy |
Comments
Comment #1
benjy commentedAbove patch broke edit node form. New patch attached.
Comment #2
realityloop commentedthanks benjy, now added to dev
Comment #4
kccmcck commentedThanks @benjy — I've applied the patch and tested around various admin areas of my site, however the styling is still being applied when editing users on my site. (Logged in as admin at a path structure like: http://domain.com/user/68/edit?destination=admin/people)
Can someone else test the patch (now committed to dev) on a similar URL & confirm? Thanks.
Comment #5
chrlvclaudiu commentedHi,
@Kathryn531 , indeed there is an issue of applying the uniform also on the user edit pages. Hope this patch works for you.
Comment #6
kccmcck commented@chrlvclaudiu, In order for the patch in #5 to work, I had to remove:
&& in_array('administrator', array_values($user->roles))Otherwise (without this snippet) it works & Uniform fields do not appear on user edit pages.
Comment #7
chrlvclaudiu commentedYes, you're right Kathryn, but I imagined that you only need it to be disabled when logged in as administrator.
But the rest should be fine.
Comment #8
benjy commentedI think maybe a different approach. Maybe we should look at disabling uniform when the current theme is a specified admin theme?
Comment #9
damienmckennaI ran into this too. I disabled Unform for admin pages and at first it was fine on a Features page, but Unform triggered as soon as I selected a component to add to the feature causing it to run an AJAX call. I tried adding "body.page-admin" to the Exclude Selectors list but it didn't have any effect.
Comment #10
damienmckennaThe problem no longer exists with the current 7.x-1.x-dev version, I suspect #1338436: Form elements gets re-processed after AJAX refresh fixed it.