History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: DOTCMS-2744
Type: Bug Bug
Status: Released Released
Resolution: Released
Priority: Major Major
Assignee: Testing User
Reporter: Gabriela Gonzalez
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
dotCMS

Content Manager - Add New Content issue when language field is set to "All" option

Created: May 19, 2009 4:36 PM   Updated: August 12, 2009 6:44 PM
Component/s: a. Unknown
Affects Version/s: 1.7, 1.7a
Fix Version/s: 1.7a

Time Tracking:
Original Estimate: Not Specified
Remaining Estimate: 0 minutes
Time Spent - 1 hour
Time Spent: 1 hour
Time Spent - 1 hour

File Attachments: None
Image Attachments:

1. screenshot-1.jpg
(392 kb)

2. screenshot-2.jpg
(311 kb)
Environment:
Open Source Code (Clustered/Postgres) https://svn.dotcms.org/branches/releases/1.7 rev 16298
Open Source Released Code https://svn.dotcms.org/tags/releases/1.7/1.7.0 rev 16075
Enterprise Released Code https://svn.dotcms.org/tags/enterprise/2009 rev 16281


 Description  « Hide
Content Manager - Add New Content issue when language field is set to "All" option

Current behavior

When clicking on "Add New Content" from the search content screen while having the "All" option selected for the language drop down, no language shows as selected in the Add/Edit content screen. The content can be saved and published without specifying the language, and the content gets assigned language_id = 0 in the database.
When searching for the new content created, it get's displayed under "All" language, and there's no flag associated to it.

Proposed behavior

The language field should be mandatory, or at least the default language should be assigned to the content if the Add/Edit screen is reached having "All" as the language selected.

To reproduce the error:

1. Go to the search content screen
2. Select the option "All" for language
3. Click on "Search"
4. Click on "Add New Content"
5. Enter the required fields without touching the language drop down
6. Save and publish
7. Select "All" for language again in the search content screen
8. See the new content showing up without a flag

This is what you see in the database for the contents created without specifying the language:

opensource_12=# select text1, language_id from contentlet where structure_inode = '6002';
 text1 | language_id
-------- +-------------
 test 2 | 0
 test 3 | 0
 test 5 | 0



 All   Comments   Work Log   Change History   Subversion Commits   FishEye      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.