Closed (fixed)
Project:
Skinr
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
22 Oct 2010 at 15:38 UTC
Updated:
12 Nov 2010 at 06:50 UTC
Jump to comment: Most recent file
Currently if you don't have any skins available the form is empty but the "Save Configuration" button still exists. If you click it you obviously get errors because the form can't validate. So I added a simple check to see if the $skinsets variable is empty, and if it is it returns a simple message, if not it goes through with the skin set form creation.
My programming skills are not good so I will not be offended if this is NOT a good way to go about solving the issue.. just thought I'd make an attempt and solving it! :)
I've also checked to make sure the form still appears and works when there are skins available and it appears to do work!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | skinr.ui-skins-empty.2.patch | 1.23 KB | sun |
| skinr-skinsets-empty.patch | 4.18 KB | nomonstersinme |
Comments
Comment #1
nomonstersinme commentedchanging status
Comment #2
sunComment #3
jacineCommitted :) Thanks!
http://drupal.org/cvs?commit=443558