Closed (fixed)
Project:
GeSHi Filter for syntax highlighting
Version:
7.x-1.x-dev
Component:
Administration interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2012 at 15:03 UTC
Updated:
28 Nov 2014 at 12:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
soxofaan commentedConfirmed.
More info on how to reproduce:
"Use text format specific tag settings." has to be enabled on the general GeSHi filter admin page
On a text format settings page (With GeSHi filter enabled): GeSHi settings are not saved (not only language tags)
Comment #2
jasen commentedAlso confirmed. When editing a text format, if I try to add in a tag/attribute value within the GeSHi filter settings it won't save, yet doesn't give an error that it hasn't saved.
Comment #3
kacy commentedI confirm, if you tick "Use text format specific tag settings." there is no way to update language configuration in gesh filter tab
Comment #4
Saoirse1916 commentedSame problem here -- though when I enable Use text format specific tag settings" I can no longer even get back to the configuration page at all.
Comment #5
swapnil mishra commentedI am having similar issue. I am using the latest stable version of this module. After installing, I added a new language from the module configuration page admin/config/content/formats/geshifilter/languages/all. The new language added is visible in the text format section (for example Filtered HTML) admin/config/content/formats/filtered_html as show below.
However, when I am adding "TAG/LANGUAGE ATTRIBUTE VALUE" as show above and saving the form, then it is not saving.
Am I skipping anything in the configuration? Any help in this will be appreciated.
Comment #6
anortiz08 commented+1 We are experiencing the same issue.
Comment #7
redhatusr commentedAlso confirmed. new tags/attributes are not saved without any error
Comment #8
yukare commentedIt is saved, but we use it wrong!
The settings for each filter are the same way as drupal 8, the settings are in $format->settings['setting'], but we use someting like $variable['setting_filterformat'].
So we have two options: when the filter is saved, we save everything we need by hand in $variable(which is used now, except that we do not save) or change everything to use $format->settings. I will work on a fix for it by saving to $variable, if i use $filter->settings, i will have to add $filter to a dozen of function calls and pass it everywhere.
Comment #10
yukare commentedThis commit fix this by using $variable['setting'] not $format->settings(which would be better) but now it works.
There is no tests because tests are broken, but with this i can work on tests now in #2161119: Fatal error in tests: Call to undefined function db_result()..
Please test it and report any issue.
Comment #11
yukare commentedWhile working on tests, i found that validation is not working, so you can have the same tag for more than one language, back to needs work :(
Comment #13
yukare commentedThis is fixed now. Since we have a new structure in the form array that is not the same as the form in language, i made a copy from the function used in languages, and changed it to work with new form structure.
I did a manual test and it work with the tests, so all tests pass now, this will help the work on other issues too.