Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-04 15:39:44

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

r1794: List multi-edit cases...

Just noticed that there are some options in the list multi-edit screen that can lead to articles with an invalid state (IMO).

To reproduce…

  1. Go to the content > articles tab.
  2. Check off any article in the right hand colunm
  3. Scroll to the bottom
  4. Choose either ‘Change status’ or ‘Change author’
  5. In the select box, make sure the blank option is selected
  6. Hit the go button

There you are, articles with no status or author.

In the case of blank status, if you then go and edit the article the status is displayed as ‘live’ but unless you save the article, the status remains 0 in the textpattern table.

In the case of blank author, the authorid field is indeed blank in the textpattern table and is not displayed in the article write tab.


Steve

Offline

#2 2006-09-04 16:35:25

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: r1794: List multi-edit cases...

Possible fix: in txp_list.php, function list_multi_edit, below the line that reads <code>$val = ps(‘Status’);</code>, add <code>if (empty($val)) $selected = array();</code>
Same in the ‘Author’ case statement.

PS. I noticed that it is now possible to assign no section to an article… has that changed since 4.0.3?

Last edited by ruud (2006-09-04 16:38:34)

Offline

#3 2006-09-18 15:12:10

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: r1794: List multi-edit cases...

Thanks Ruud. r1832.

Offline

Board footer

Powered by FluxBB