Skip to content
Snippets Groups Projects

Issue #3465453 by Grimreaper, pdureau: Validation error with empty attribute object in link

Issue #3465453 by Grimreaper, pdureau: [2.0.0-beta1] Validation error with empty attribute object in link

Closes #3465453

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
188 189 // possible anymore because SDC will not validate it against the prop
189 190 // type schema.
190 191 $item["link_attributes"] = $options["attributes"];
192 // Empty PHP arrays are converted in JSON arrays instead of JSON objects
193 // by json_encode(), so it is better to remove them.
191 194 if (empty($item['link_attributes'])) {
192 195 unset($item['link_attributes']);
196 return $items;
  • Pierre Dureau added 4 commits

    added 4 commits

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    • e341f4bb - LinksPropType: merge attributes & link_attributes normalization

    Compare with previous version

  • added 1 commit

    • bcb14211 - LinksPropType: merge attributes & link_attributes normalization

    Compare with previous version

  • added 1 commit

    • 85544277 - LinksPropType: merge attributes & link_attributes normalization

    Compare with previous version

  • added 1 commit

    • 4326941b - Init LinksPropTypeNormalizationTest

    Compare with previous version

  • Pierre Dureau added 9 commits

    added 9 commits

    • 4326941b...b89d730b - 5 commits from branch project:2.0.x
    • ff8a4756 - Issue #3465453 by Grimreaper, pdureau: [2.0.0-beta1] Validation error with...
    • f7cd2559 - A lil' update
    • 26f79ea3 - LinksPropType: merge attributes & link_attributes normalization
    • cb5eadc2 - Init LinksPropTypeNormalizationTest

    Compare with previous version

  • Pierre Dureau added 7 commits

    added 7 commits

    • cb5eadc2...85b7a732 - 3 commits from branch project:2.0.x
    • c2970d26 - Issue #3465453 by Grimreaper, pdureau: [2.0.0-beta1] Validation error with...
    • f8dab805 - A lil' update
    • 5ec4f471 - LinksPropType: merge attributes & link_attributes normalization
    • 07e3e51e - Init LinksPropTypeNormalizationTest

    Compare with previous version

  • added 1 commit

    • e3cde60e - Init LinksPropTypeNormalizationTest

    Compare with previous version

  • added 1 commit

    • 0516c39d - Init LinksPropTypeNormalizationTest

    Compare with previous version

  • added 1 commit

    • efaec86e - Init LinksPropTypeNormalizationTest

    Compare with previous version

  • added 1 commit

    • 0edb6f2c - Add Steven's use case, with link_attributes

    Compare with previous version

  • added 1 commit

    • d0e279cf - Stop tranforming attributes to array; improve link_attributes generation

    Compare with previous version

  • Pierre Dureau added 8 commits

    added 8 commits

    • d0e279cf...2d6b275b - 2 commits from branch project:2.0.x
    • b2236c01 - Issue #3465453 by Grimreaper, pdureau: [2.0.0-beta1] Validation error with...
    • 672ca194 - A lil' update
    • ea86959d - LinksPropType: merge attributes & link_attributes normalization
    • 3006ab86 - Init LinksPropTypeNormalizationTest
    • 56a9125a - Add Steven's use case, with link_attributes
    • 60423ca9 - Stop tranforming attributes to array; improve link_attributes generation

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Pierre Dureau added 1 commit

    added 1 commit

    • e939c69b - Add extra check for AttributesPropType

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading