Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
21 Apr 2009 at 18:31 UTC
Updated:
16 Jun 2009 at 20:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
dawehnermh i don't like this patch, but it solves the issue.
there has to be a much easier way to do it, this is not a good style i think
PS: thanks Spartacus for finding the issue.
Comment #2
merlinofchaos commentedWhat if we just set the textarea to #required TRUE?
Comment #3
dawehnerthe Problem is there that the validate function executes the code and does all stuff see
And validate functions are called if there is something in the view import textarea or not, this was my first try to fixing it, perhaps i did something wrong...
Comment #4
merlinofchaos commentedHm ok. Just exit the validation function early if the textarea is empty?
Comment #5
dawehnerthx wise merlin!
Comment #6
stborchertIf you throw an error if the textarea is empty you should set it to required, too.
Apart from that: +1 and works.
Comment #7
dawehnerbut then i don't have to throw the error, because required throws a error too.
and this message is rather hard to understand
but here is the patch.
thx for the review!
Comment #8
larsdjohnson commentedI had this problem for a different reason. This comes up first on Google search for the error, so I'm going to put my problem here for anyone else who finds this:
If you have TinyMCE enabled for that views import text box, it formats your code funny, and even if you use the HTML button in TinyMCE to paste your code, it still throws "p" and "/p" tags around your text.
So, you have to disable TinyMCE for that page in your TinyMCE configuration.
Comment #9
dawehnerYou cannot have this problem together with the wysiwyg-API Module
There the editor is only used for fields with a input filter attached, and its definitve not one for this textarea.
you have to disable the editor, this cannot/shouldn't by solved by views, thats my personal oppinion
Comment #10
tobiasbComment #11
tobiasbmy smaller version :D its time to commit this quick fix
Comment #12
merlinofchaos commentedWorks for me. Committed!