Skip to content

Commit

Permalink
fix: addressbook structure filter
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Dec 2, 2021
1 parent e5d4a0c commit 63e73c8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ platforms:
releaseDate: '2021-11-02'
roadmap: 'https://github.com/UniversitaDellaCalabria/unicms-unical-storage-handler/issues'
softwareType: standalone/web
softwareVersion: v0.8.1
softwareVersion: v0.8.2
url: 'https://github.com/UniversitaDellaCalabria/unicms-unical-storage-handler'
usedBy:
- Università della Calabria - https://www.unical.it
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name=PKG_NAME,
version='0.8.1',
version='0.8.2',

packages=[PKG_NAME],
package_dir={PKG_NAME: f"{SRC_FOLDER}/{PKG_NAME}"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ <h4>
is_loading_structure_type: true,
is_loading_roles: true,

loader_source_structures: '{{ structuresfilter_api }}?lang={{ LANGUAGE_CODE }}&father={{ structure_id }}',
loader_source_structures: '{{ structuresfilter_api }}?lang={{ LANGUAGE_CODE }}',
loader_source_structure_types: '{{ structuretypes_api }}?lang={{ LANGUAGE_CODE }}',
loader_source_roles: '{{ roles_api }}?lang={{ LANGUAGE_CODE }}',

Expand All @@ -255,7 +255,7 @@ <h4>
structure_type_filter: [],

structure_type_filter_string: '',
structure_father_filter: '{{ root_structure }}'
structure_father_filter: '{% firstof structure_id root_structure %}'

{% endblock extra_data %}

Expand All @@ -271,7 +271,9 @@ <h4>
this.allowed_roles = get_roles_list
}

this.structure_father_filter = params.get("father")
if (params.get("father") != null)
this.structure_father_filter = params.get("father")

this.structure_type_filter_string = params.get("structuretypes")
let get_structure_types = params.get("structuretypes")

Expand Down Expand Up @@ -306,7 +308,7 @@ <h4>
source += '&type='+this.structure_type_filter_string

if(this.structure_father_filter)
source += '&father=this.structure_father_filter'
source += '&father='+this.structure_father_filter

axios
.get(source)
Expand Down

0 comments on commit 63e73c8

Please sign in to comment.