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

createPrintJob can return object, but code to get object is incorrect #55

Open
CaptainClueless opened this issue Nov 16, 2023 · 1 comment

Comments

@CaptainClueless
Copy link

CaptainClueless commented Nov 16, 2023

if ($returnObject) {
            return $this->viewPrintJobs(0, 1, $this->lastResponse->body);
        }

The code for getting the object for createPrintJob's response uses viewPrintJobs, but the first argument is 0, and the code inside viewPrintJobs requires the value to be greater than or equal to 1

@CaptainClueless
Copy link
Author

Furthermore, the third argument of viewPrintJobs is expects a direction, either 'ASC' or 'DESC' yet the code is passing in the response number, which should be the 4th argument

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

No branches or pull requests

1 participant