Closed Bug 482338 Opened 15 years ago Closed 15 years ago

Successful group submission needs mission statement to have 28 words and not 25 as mentioned in the user message

Categories

(Websites Graveyard :: spreadfirefox.com, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: krupa.mozbugs, Assigned: mary)

References

()

Details

(Whiteboard: strings)

Attachments

(1 file)

Steps to reproduce:

1.Go to https://spreadfirefox.authstage.mozilla.com
2.Log in to your admin account
3.Create content->Project.
4.Try to submit a project with exactly 25 words.

expected result:
submission is successful with 25 words or the user message stats is revised

accepted result:
For submission to be successful the mission statement needs to min 28 words long.
Assignee: nobody → paul
If this problem exists then it is a problem with the core node module. Does this problem also occur without the FCK Editor disabled?
From the node module ....

// Make sure the body has the minimum number of words.
  // todo use a better word counting algorithm that will work in other languages
  if (isset($node->body) && count(explode(' ', $node->body)) < $type->min_word_count) {
    form_set_error('body', t('The body of your @type is too short. You need at least %words words.', array('%words' => $type->min_word_count, '@type' => $type->name)));
  }


It looks as though there may be a problem with the counting algorithm. 

Shall we resolve this as WONTFIX since even if the problem can be reproduced anf fixed were not going to be making modifications to drupal core. 

Passing this back to you Mary to manage the resolution of this bug.

Best, Paul
Assignee: paul → mary
if we're not changing how many words are actually required we should try and override the string to reflect
Whiteboard: strings
Paul:  Can you handle this?  Thanks!
Paul...Checking in here.
I couldn't reproduce this bug. As soon i submitted a post with exactly 25 words i didn't get the warning message.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
Paul,
I was able to reproduce this.Can you please try again with the test data that I have used?

The bug seems to have mutated in its month of existence. I can now submit a project with 25 words if all the words are in the same sentence. But if a user's content is in 3 distinct lines,submit is still unsuccessful.


screencast:http://screencast.com/t/eg9c0e0K0A9
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
This happens because we have a WYSIWYG editor that adds tags (e.g. <p>) which messes up the normal word counting alg.

I don't think this is worth spending time to try and fix.  25, 28, only a 3 word difference, most people probably won't even notice.

Paul, if you know of a simple way to fix this, go for it, but it doen't have to be a huge time sink.  I'd rather just mark wontfix
I agree Alex, it's a very small problem something that core know about and are working on so i would say we should mark it as WONTFIX and wait for it to be fixed upstream.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → WONTFIX
verified
Status: RESOLVED → VERIFIED
Product: Websites → Websites Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: