Can't save wiki content - title is locked and empty

thipages - May 24, 2008 - 21:28
Project:Wikitools
Version:6.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:cwgordon7
Status:active
Description

Create a new wiki with a content
Edit it and update the content (the title is present and not changeable)

Save --> a warning message appears saying that a title is needed ... the title is effectively empty and you cannot change it (disabled text field)

#1

poseidon123 - May 29, 2008 - 22:17

yep same problem here and I think this is caused because in wikitools settings, we have kept "Can't change title". But its indeed a bug.

#2

Ricco - May 30, 2008 - 03:09
Title:Cant Edit Wiki content» Can't stop getting emails from wikitools project
Version:6.x-1.0» 5.x-1.x-dev
Component:User interface» Miscellaneous
Category:bug report» support request

Help,

I do not seem to be able to find how I stop getting emails from the wikitools project.

Can anyone tell me how I can stop getting the updates from the wikitools project?

Cheers! Ricco

#3

poseidon123 - May 30, 2008 - 19:58
Title:Can't stop getting emails from wikitools project» Can't save wiki content - title is locked and empty

DO NOT change the title of the issue. I have revert it back to original title.

Are you subscribed to something related to wikitools ? find it and unsubscribe.

#4

cwgordon7 - May 30, 2008 - 20:09
Version:5.x-1.x-dev» 6.x-1.0
Component:Miscellaneous» Code
Category:support request» bug report
Priority:normal» critical

Yes, this is a bug (a serious one). Ricco, please do not change the titles/versions/components/categories of the issues in the issue queue. Create a new issue if you need help unsubscribing.

#5

cwgordon7 - May 30, 2008 - 20:13
Assigned to:Anonymous» cwgordon7

#6

add1sun - June 17, 2008 - 20:49

This looks like the same issue as #267390: Move Protection bug so I'm marking that one as a dupe.

#7

perforator - July 10, 2008 - 19:34

Hi.

I played around a bit with the problem, and it seems (for me) it's not originating in wikitools. After having created a simple node type by hand with

function foo_form( &$node )
{
    $type = node_get_types('type', $node);
   
    $form['title'] = array(
        '#type' => 'textfield',
        '#title' => check_plain($type->title_label),
        '#required' => TRUE,
        '#default_value' => $node->title,
        '#disabled' => TRUE  
            // inserted after one node was created
        );

    if( $type->has_body )
        $form['body_field'] = node_body_field($node, $type->body_label, $type->min_word_count);

    return $form;
}

(along with hook_node_info)

I created a node and, inserted '#disabled' => TRUE and went to editing: And the same problem occurred...

Can anybody confirm this? I've used vanilla drupal 6.3.

Edit: Seems to correspond with this issue Click!

Edit: Click! contains a patch for 'form.inc' named 'fapi_disabled_version3.diff'. It works against 6.3.

Can this bug report be considered to be closed?

#8

perforator - July 20, 2008 - 05:32
Status:active» closed

Closed

#9

cwgordon7 - July 20, 2008 - 05:41
Status:closed» active

Can people stop spamming my issue queue please? If you have a patch post it; if you have something useful to say, say it. Otherwise kindly leave my issue queue alone. :P

#10

Miraploy - August 17, 2008 - 02:49

I hope this will be resolved. Subscribing

#11

gorefiend - August 18, 2008 - 18:30

Comment #7 from perforator.

Read the entire post of the link from comment #7..
Great job! seems like you solved the problem :)

#12

sybesis - August 18, 2008 - 20:54

There is still a problem. Wikitool disable the title. Then, when the form is submitted, the title isnt (remember, it is disabled). So you have to enable it before submission. onsubmit event does the job.

But, wikitools only disable the title client side. In other word, if someone work with firebug and enable the title input before submission, he can still modify the title same if wikitool "enforce" it.

This option from wikitool is useless. Wikitools need to remember the old title before doing anymodification. So whatever you send from the client. The title is untouched. :)

 
 

Drupal is a registered trademark of Dries Buytaert.