Bulk update ignorant of wiki custom field

To fix errors like:

[Mon Nov 10 20:35:35 2008] [crit]: Unknown CustomField type: Wikitext
(/opt/rt3/share/html/Search/Bulk.html:191)

Apply something like this:

— /opt/src/rt-3.8.1/share/html/Search/Bulk.html 2008-08-18
11:14:03.000000000 -0400
+++ share/html/Search/Bulk.html 2008-11-10 17:03:52.000000000 -0500
@@ -181,7 +181,7 @@
% } elsif ($cf->Type eq ‘Combobox’) {

<& /Elements/EditCustomFieldCombobox, @add &> <& /Elements/EditCustomFieldCombobox, @del &> -% } elsif ($cf->Type eq 'Freeform') { +% } elsif ($cf->Type eq 'Freeform' || $cf->Type eq 'Wikitext') { <& /Elements/EditCustomFieldFreeform, @add &> <& /Elements/EditCustomFieldFreeform, @del &> % } elsif ($cf->Type eq 'Text') {

Cambridge Energy Alliance: Save money. Save the planet.

bulk-wiki.patch (594 Bytes)

Is there a reason not to use EditCustomFieldWikitext that I’m missing
in my quick skim of the patch?

-kevinOn Nov 10, 2008, at 6:19 PM, Jerrad Pierce wrote:

To fix errors like:

[Mon Nov 10 20:35:35 2008] [crit]: Unknown CustomField type: Wikitext
(/opt/rt3/share/html/Search/Bulk.html:191)

Apply something like this:

— /opt/src/rt-3.8.1/share/html/Search/Bulk.html 2008-08-18
11:14:03.000000000 -0400
+++ share/html/Search/Bulk.html 2008-11-10 17:03:52.000000000 -0500
@@ -181,7 +181,7 @@
% } elsif ($cf->Type eq ‘Combobox’) {

<& /Elements/EditCustomFieldCombobox, @add &> <& /Elements/EditCustomFieldCombobox, @del &> -% } elsif ($cf->Type eq 'Freeform') { +% } elsif ($cf->Type eq 'Freeform' || $cf->Type eq 'Wikitext') { <& /Elements/EditCustomFieldFreeform, @add &> <& /Elements/EditCustomFieldFreeform, @del &> % } elsif ($cf->Type eq 'Text') {


Cambridge Energy Alliance: Save money. Save the planet.
<bulk-wiki.patch>_______________________________________________
List info: The rt-devel Archives

Is there a reason not to use EditCustomFieldWikitext that I’m missing
in my quick skim of the patch?

-kevin

Not really. I didn’t give it too much thought, and was just trying to
squelch the error.
Cambridge Energy Alliance: Save money. Save the planet.

Is there a reason not to use EditCustomFieldWikitext that I’m missing
in my quick skim of the patch?

Not really. I didn’t give it too much thought, and was just trying to
squelch the error.

Want to forward something into rt-bugs?

We should probably doublecheck for other missing types, although
that makes me wonder if the whole thing could just use EditCustomField
instead.

-kevin

Want to forward something into rt-bugs?
Doh! I knew there was a btter place to send.

We should probably doublecheck for other missing types, although
that makes me wonder if the whole thing could just use EditCustomField
instead.
Indeed, that was the major motivation for sending… not that it was the best
fix, but to point out the problem. Ah yes, and let that do the work of
splitting?
Probably a good idea. The whole add/delete is kind of funny for non-select
fields too.
Cambridge Energy Alliance: Save money. Save the planet.