Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory-plugins fusiondirectory-plugins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 65
    • Issues 65
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectory-pluginsfusiondirectory-plugins
  • Issues
  • #4993
Something went wrong while setting issue due date.
Closed
Open
Issue created 8 years ago by Côme Chilliet@cchillietReporter
  • New related issue

  • New related issue

Shell is broken and field order is random

Closed

Shell is broken and field order is random

JSON and perl have no way to store the order of a hash so we should store it in a separate array.

(from redmine: issue id 4993, created on 2016-07-07, closed on 2017-02-14)

  • Relations:
    • copied_to #4994 (closed)
    • copied_to #4997 (closed)
  • Changesets:
    • Revision c47bdb29 by Côme Chilliet on 2016-07-07T10:02:57.000Z:
Fixes #4993 Added sections_order and attrs_order, and fixed shell
  • Revision b2f58d58 by Côme Chilliet on 2016-07-07T10:07:32.000Z:
Fixes #4993 Added sections_order and attrs_order, and fixed shell
  • Custom Fields:
    • Bug in version: 1.0.13

    Tasks

    0

    No tasks are currently assigned. Use tasks to break down this issue into smaller parts.

    Linked items
    0

    Link issues together to show that they're related. Learn more.

    Activity


    • mhamant
      mhamant @mhamant · 8 years ago
      Reporter

      Hi Côme, I took the time to test how the data is returned with getfields() and formfields() I'm unsure the data content returned by getfields() is the one we expect, see :

      formfields()

                  [perso] => Array
                      (
                          [name] => Personal information
                          [icon] => geticon.php?context=types&icon=user&size=16
                          [attrs] => Array
                              (
                                  [sn] => Array
                                      (
                                          [htmlid] => sn
                                          [label] => Last name
                                          [required] => 1
                                          [disabled] => 
                                          [description] => Last name of this user
      (...)
                          [attrs_order] => Array
                              (
                                  [0] => sn
                                  [1] => givenName
                                  [2] => description
                                  [3] => jpegPhoto
                              )
      
                      )
      
      

      Seems to works as expected.

      And with getfields() we have :

                  [perso] => Array
                      (
                          [name] => Personal information
                          [icon] => geticon.php?context=types&icon=user&size=16
                          [attrs] => Array
                              (
                                  [cn] => Array
                                      (
                                          [htmlid] => cn
                                          [label] => cn
                                          [required] => 
                                          [disabled] => 
                                          [description] => hidden
      (...)
                          [attrs_order] => Array
                              (
                                  [cn] => Array
                                      (
                                          [htmlid] => cn
                                          [label] => cn
                                          [required] => 
                                          [disabled] => 
                                          [description] => hidden
      (...)the exact same content as [attrs](...)
      

      I don't know if we want to order the output of getfields() but, if not we could simply not include [attrs_order] for this function, wdyt ?

      (from redmine: written on 2016-07-08)

    • Côme Chilliet
      Côme Chilliet @cchilliet · 8 years ago
      Author Reporter

      Thanks, I opened #4997 (closed) for this specific problem.

      (from redmine: written on 2016-07-11)

    • Côme Chilliet
      Côme Chilliet @cchilliet · 8 years ago
      Author Reporter

      Close issue

      (from redmine: written on 2017-02-14)

    • Côme Chilliet closed 7 years ago

      closed

    • bmortier added Fixed label 6 years ago

      added Fixed label

    • bmortier removed Bugs label 2 years ago

      removed Bugs label

    • bmortier added PJ1802-0188 label 2 years ago

      added PJ1802-0188 label

    Please register or sign in to reply
    Assignee
    Côme Chilliet's avatar
    Côme Chilliet
    Assign to
    Labels
    0
    None
    0
    None
      Assign labels
    • Manage project labels

    Milestone
    No milestone
    None
    Due date
    None
    None
    None
    Time tracking
    No estimate or time spent
    Confidentiality
    Not confidential
    Not confidential

    You are going to turn on confidentiality. Only project members with at least the Reporter role, the author, and assignees can view or be notified about this issue.

    Lock issue
    Unlocked
    0
    0 Participants
    Reference:

    Menu

    Explore Projects Groups Topics Snippets