The default key for the 'open' value of the 'Project status search', 'Task status search', and 'Ticket status search domains' is 'inserted,in progress,on hold'. I've edited the 'inserted' value in the various places and I'm trying to update the key for the 'open' value. The field length is now 20 characters long as opposed to the 28 characters that must have allowed the default to be entered. Please increase the allowable length of the field to 40 characters to accommodate adding multiple values names in the key field to create the new search values.

Thank you,
Elise

Comments

juliangb’s picture

Ref: This is the issue that caused the problem: #717174: Increase character limit.

juliangb’s picture

The change that is required is to up the max length in stormattribute_form() to 100, and to enlarge the database fields for all storm modules that can reference attributes to 100 too.

The reason that the size was limited to 20 in the previous issue is because otherwise the link for attributes that are linked to a node is broken.

juliangb’s picture

Accidentally committed a change to the max length already. Will create patch to sort out the database fields.

juliangb’s picture

Status: Active » Needs review
StatusFileSize
new3.5 KB

Incomplete patch - up to stormorg alphabetically.

Needs to be physically applied for testing too.

Status: Needs review » Needs work

The last submitted patch, storm--899970-4.patch, failed testing.

juliangb’s picture

Version: 6.x-1.33 » 6.x-1.x-dev

Testing needs to be against dev.

juliangb’s picture

Status: Needs work » Needs review

#4: storm--899970-4.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, storm--899970-4.patch, failed testing.

juliangb’s picture

Status: Needs work » Needs review

#4: storm--899970-4.patch queued for re-testing.

juliangb’s picture

StatusFileSize
new12.35 KB

Patch for the bot.

juliangb’s picture

Due to my current network connection I am unable to test this patch - only have CVS access at the moment.

Would it be possible to test this please and report back?

It should up the storage for all storm attribute keys in the table for each module to 100.

tchurch’s picture

Status: Needs review » Needs work

I've had a quick look and it doesn't resolve my issue (which was closed as duplicate).

My issue is relating to the attribute table itself.

Even though the table has akey of 100, you can't use the full 100.
e.g.
Try to set the key for "Task status search" with value "Open" to a long string (a list of different values) and it doesn't work. I have to go directly to the database to make the change.

These changes are also good as it would bring all attribute related columns into sync with the table.

juliangb’s picture

Is this definitely on -dev?

From what I can see (http://drupalcode.org/viewvc/drupal/contributions/modules/storm/stormatt..., line 453), #maxlength is set to 100. I'm fairly sure #size just affects the width of the field.

Have I misunderstood something somewhere?

tchurch’s picture

Status: Needs work » Needs review

Re-tested my issue with -dev. Details in #13 seem to 'fix' my issue.
It must have been fixed earlier (with #717174: Increase character limit )

Sorry, I didn't notice that.

juliangb’s picture

Glad to hear that one is sorted.

This issue is a completion of that issue with the following logic:
- A #maxlength of 20 meant that you could not input the full search attribute keys
- But allowing attribute keys to be longer than 20 meant that they overflowed in some db tables. This issue fixes the db tables so that we're on 100 all round.

The reason I want to include this in the next release is as currently the recent changes introduce a bug.

juliangb’s picture

Title: Key Field Length must have changed » Inconsistent attribute key length fields
Status: Needs review » Fixed

Tested and committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.