Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not to remove the merged file path from the saved data #195

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

OlfatProgressus
Copy link
Collaborator

@OlfatProgressus OlfatProgressus commented Nov 11, 2024

This PR contain fix for this issue

  1. Remove the code that unset merged_files from saved_data array
  2. Remove the code that delete the files after merge

src/Order/Base.php Outdated Show resolved Hide resolved
Comment on lines +707 to +708
$label_format = $this->settings->get_label_format();
$filename = Utils::generate_label_name( $order->get_id(), $label_type, $barcode, $label_format, $label_extension );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but the label file returned from API is always A6, is there a reason for this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Abdalsalaam It cause a fatal error when it generate files with format A4 then try to create the label again from bulk action because file path is A6 but the one saved to database is A4

Co-authored-by: Abdalsalaam Halawa <[email protected]>
sal4sup added a commit that referenced this pull request Dec 1, 2024
@sal4sup sal4sup mentioned this pull request Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants