ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Entry Default Status being set as closed

December 27, 2010 10:57am

Subscribe [4]
  • #1 / Dec 27, 2010 10:57am

    Scott Boyde

    208 posts

    For non admin groups any new entries on my SAEF are being assigned as closed.  I am using safecracker and have posted this on their forums too.  But wanted to try here as well as I have no idea why its not working.

    Fixtures Channel - Group Assignments - Fixtures Statuses
    Fixtures Channel - Channel Preferences - Administrative Preferences - Default Status - Pending

    Fixture Statuses - Pending (First letter capitalised).

    In the code as well I have set the Status to Pending.

    <input type="hidden" name="status" value="Pending" />

    Within Safecracker I have also set the default status to Pending for Fixtures.

    When I submit the form as admin entries get set as Pending but as any other group it gets set to closed.  I am not sure where else I should look or if there is any other setting to change. Anyone any ideas.

    {exp:safecracker channel="fixtures" 
        return="fixtures/thanks_row" 
        datepicker="no"
    }
    
    <fieldset>
    <input type="hidden" name="allow_comments" value="n" />
    <input type="hidden" name="status" value="Pending" />
    
    <?php
    $exec_league = '{exp:member:custom_profile_data}{exec_league}{/exp:member:custom_profile_data}';
    ?>
    
    <table cellspacing="0">
        <tr>
            <td>
                <input type="text" name="entry_date" id="entry_date" value="{current_time format='%Y-%m-%d %H:%i'}" maxlength="23" size="16" />
                <input type="hidden" name="title"  id="title" value="{title}" />
            {if logged_in_member_group == 1}
    
            <select name="category[]">
                    <option value="" selected="selected">--</option>
                    {exp:channel:categories cache="yes" channel="seasons" refresh="60" style="linear"} 
             {if parent_id=='0'}<optgroup label="{category_name}">
                        {if:else}<option value="{category_id}">{category_name}
                        {/if}
                        {if parent_id=='0'}</optgroup>
                        {if:else}</option>
                        {/if}
    
            {/exp:channel:categories}
        </select> 
    
        {field:fixture_home_team} {field:fixture_away_team} 
        {/if}
    
        {if logged_in_member_group == 8}
    
            <select name="category[]">
                    <option value="" selected="selected">--</option>
                    {exp:channel:categories cache="yes" channel="seasons" refresh="60" style="linear"} 
            {if category_id == '<?php echo $exec_league?>' || parent_id == '<?php echo $exec_league?>'}
                        {if parent_id=='0'}<optgroup label="{category_name}">
                        {if:else}<option value="{category_id}">{category_name}
                        {/if}
                        {if parent_id=='0'}</optgroup>
                        {if:else}</option>
                        {/if}
            {/if}
                {/exp:channel:categories}
            </select>
                
                {exp:member:custom_profile_data}
                    {embed="fixtures/home_team" exec_league="{exec_league}"} {embed="fixtures/away_team" exec_league="{exec_league}"}
                {/exp:member:custom_profile_data}
    
    
        {/if}
                <button type="submit" name="submit">Submit</button>
            </td>
        </tr>
        <tr>
            <td>
                
            </td>
        </tr>
    </table>
    </fieldset>
    {/exp:safecracker}
  • #2 / Dec 27, 2010 4:39pm

    Ingmar

    29245 posts

    Please make sure the channel in question actually has a status group assigned to it.

  • #3 / Dec 27, 2010 4:46pm

    Scott Boyde

    208 posts

    Please make sure the channel in question actually has a status group assigned to it.

    Fixtures Channel - Group Assignments - Fixtures Statuses

    The form used is the same for for both admin and non-admin groups.  Can a non admin group use a Pending status. 

    Just doing some testing and it definately doesn’t work and it might be the way it supposed to be.  I have Open, Closed, Pending, Postponed, Late and Abandoned in the status group.  If I change the default within safecracker to any other than Pending it works fine.

  • #4 / Dec 28, 2010 2:23am

    John Henry Donovan

    12339 posts

    Scott,

    You are using a third-party add-on here which may be the cause of your issue as you say. We can’t support this I’m afraid. What we can do though is make sure that your statuses are working out of the box.

    Can you create a new blank template and try the example code from our docs to make sure that a logged in member can add an entry with a status other than closed.

  • #5 / Dec 28, 2010 5:44am

    Scott Boyde

    208 posts

    I have tried the sample code but it doesn’t display the Pending status for users other than admins.

  • #6 / Dec 28, 2010 6:11am

    Scott Boyde

    208 posts

    I knew it would be something stupid, I just couldn’t remember if you could set it. The Pending status itself needed “Restrict status to members of specific groups” set.

  • #7 / Dec 28, 2010 10:59am

    Sue Crocker

    26054 posts

    Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases