CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#10921] Content Field to Display in Name Column not used

avatar
Created By: Ruud van der Velden (ruudvdvelden)
Date Submitted: Fri Mar 04 17:41:21 -0500 2016

Assigned To:
Version: v2.1.2
CMSMS Version: v2.1.2
Severity: Trivial
Resolution: Fixed
State: Closed
Summary:
Content Field to Display in Name Column not used
Detailed Description:
Settings - Content Manager  --> Content List Settings --> Content Field to
Display in Name Column
Changing to 'title' has no effect.

Probably found bug:

/modules/CMSContentManager/lib/class.CmsContentManagerUtils.php

starting line 101

 public static function get_pagenav_display()
  {
    $userid = get_userid(FALSE);
    $mod = cms_utils::get_module('CMSContentManager');
$pref = cms_userprefs::get($userid,'ce_navdisplay');  // <-- should be $pref
= cms_userprefs::get_for_user($userid,'ce_navdisplay');
    if( !$pref ) {
      $pref = $mod->GetPreference('list_namecolumn');
      if( !$pref ) $pref = 'title';
    }
    return $pref;
  }



History

Comments
avatar
Date: 2016-03-16 10:57
Posted By: Robert Campbell (calguy1000)

appears already fixed
      
avatar
Date: 2016-06-26 02:27
Posted By: David Morris (wentybloke)

Appears broken again in 2.1.4, same description as original.  Although trivial,
it is a pain for my content editor.

Can temporarily patch by hardcoding the logic as $pref = 'title'
      
Updates

Updated: 2016-04-23 10:39
state: Open => Closed

Updated: 2016-03-16 10:57
resolution_id: => 7