Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19925

UrlAlias not updated on always available changes

    Details

      Activity

      Show
      Petar Spanja (Inactive) added a comment - Fixed in https://github.com/ezsystems/ezp-next/commit/3813beefa1b8d66485b8153f5072391536f29d2c
      Hide
      Vidar Langseid added a comment - - edited

      It seems to be the column lang_mask in the ezurlalias_ml table which was not updated correctly when "always available" was set

      So, after setting "always availabe", the lang mask should the following

      1lang :   11 ( binary )
      2lang :  111 ( binary )
      3lang : 1111 ( binary )
      
      

      The first bit is value of "always available", then the next bits are per language installed on the site

      Show
      Vidar Langseid added a comment - - edited It seems to be the column lang_mask in the ezurlalias_ml table which was not updated correctly when "always available" was set So, after setting "always availabe", the lang mask should the following 1lang : 11 ( binary ) 2lang : 111 ( binary ) 3lang : 1111 ( binary ) The first bit is value of "always available", then the next bits are per language installed on the site
      Hide
      Pedro Resende (Inactive) added a comment - - edited

      If I set the alwaysAvailable = 'false'; shouldn't I get the ezurlalias_ml.lang_mask 2 (binary 10) ?
      I'm asking this, since with alwaysAvailable = 'true' or alwaysAvailable = 'false' I always get 3 (binary 11).

      Show
      Pedro Resende (Inactive) added a comment - - edited If I set the alwaysAvailable = 'false'; shouldn't I get the ezurlalias_ml.lang_mask 2 (binary 10) ? I'm asking this, since with alwaysAvailable = 'true' or alwaysAvailable = 'false' I always get 3 (binary 11).
      Hide
      Pedro Resende (Inactive) added a comment -

      I'm currently testing it with the following:

      $contentTypeService = $this->repo->getContentTypeService();
      $contentService     = $this->repo->getContentService();
      $type = 'folder';
      $lang = 'eng-GB';
      $parentLocation = 2;
       
       
      $struct = $contentService->newContentCreateStruct( $type, $lang );
       
      $struct->setField( 'name', 'News' );
      $struct->alwaysAvailable = 'false' ;
       
      $locationService = $this->repo->getLocationService();
       
      $locationStruct = $locationService->newLocationCreateStruct( $parentLocation );
       
      $publishedContent = $contentService->publishVersion(
          $contentService->createContent( $struct, array( $locationStruct ) )->getVersionInfo()
      );

      Show
      Pedro Resende (Inactive) added a comment - I'm currently testing it with the following: $contentTypeService = $this->repo->getContentTypeService(); $contentService = $this->repo->getContentService(); $type = 'folder'; $lang = 'eng-GB'; $parentLocation = 2;     $struct = $contentService->newContentCreateStruct( $type, $lang );   $struct->setField( 'name', 'News' ); $struct->alwaysAvailable = 'false' ;   $locationService = $this->repo->getLocationService();   $locationStruct = $locationService->newLocationCreateStruct( $parentLocation );   $publishedContent = $contentService->publishVersion( $contentService->createContent( $struct, array( $locationStruct ) )->getVersionInfo() );

        People

        • Assignee:
          Unassigned
          Reporter:
          André Rømcke
        • Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Time Tracking

            Estimated:
            Original Estimate - Not Specified
            Not Specified
            Remaining:
            Remaining Estimate - 0 minutes
            0m
            Logged:
            Time Spent - 7 hours
            7h