Skip to content

Delete salary structure does not work and returns errors in error log #8

@anandjs20

Description

@anandjs20

Tested in Php 8 and 7.4. Frontaccounting 2.4.18.
When deleting salary structure, error log shows errors. Salary structure is not deleting.
Salary_Structure.php line 89 defines 2 inputs delete_salary_structure($selected_id, get_post('_tabs_sel'));
But line 102 is delete_salary_structure($selected_id);

Error in error log is:
salary_structure_db.inc:88: Unhandled exception [0]: Too few arguments to function delete_salary_structure(), 1 passed in /home/example.com/public_html/frontaccounting/modules/FrontHrm/manage/salary_structure.php on line 102 and exactly 2 expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions