Hello
I just wanted to update to the latest CouchCMS. While testing I found that the variable k_extended_user_id is missing in the new version, an in the new version this id is in k_user_id. But the k_user_id is missing in the new version. This leads to the situation that all snippets going through the extended users with cms:pages ... do not work. Of course I could change the code in all snippets, but better I understand the reason of this change.
Can you explain why the variable name has changed/been replaced?
Here a cms:dump_all excerpt from the two versions:
*** Version old ***
__ROOT__
k_user_id: 4757
k_user_name: ...
k_user_title: ...
k_user_email: ...
k_user_access_level: 10
k_user_disabled: 0
k_logged_in: 1
k_extended_user_id: 1
...
k_cms_version: 2.2.beta
k_cms_build: 20180619
*** Version latest ***
__ROOT__
k_user_id: 1
k_user_name: ...
k_user_title: ...
k_user_email: ...
k_user_access_level: 10
k_user_disabled: 0
k_logged_in: 1
Missing: k_extended_user_id
...
k_cms_version: 2.2.1
k_cms_build: 20201114
Addendum/Edit:
I havew not found differences concerning extended users when comparing the code of the two versions. I use the following code structure dozens of times in the application:
I just wanted to update to the latest CouchCMS. While testing I found that the variable k_extended_user_id is missing in the new version, an in the new version this id is in k_user_id. But the k_user_id is missing in the new version. This leads to the situation that all snippets going through the extended users with cms:pages ... do not work. Of course I could change the code in all snippets, but better I understand the reason of this change.
Can you explain why the variable name has changed/been replaced?
Here a cms:dump_all excerpt from the two versions:
*** Version old ***
__ROOT__
k_user_id: 4757
k_user_name: ...
k_user_title: ...
k_user_email: ...
k_user_access_level: 10
k_user_disabled: 0
k_logged_in: 1
k_extended_user_id: 1
...
k_cms_version: 2.2.beta
k_cms_build: 20180619
*** Version latest ***
__ROOT__
k_user_id: 1
k_user_name: ...
k_user_title: ...
k_user_email: ...
k_user_access_level: 10
k_user_disabled: 0
k_logged_in: 1
Missing: k_extended_user_id
...
k_cms_version: 2.2.1
k_cms_build: 20201114
Addendum/Edit:
I havew not found differences concerning extended users when comparing the code of the two versions. I use the following code structure dozens of times in the application:
- Code: Select all
<cms:if k_logged_in>
<cms:pages masterpage='app/users/index.php' custom_field="extended_user_id==<cms:show k_extended_user_id />">
.....
</cms:pages>
</cms:if>