-
Posts
376 -
Joined
-
Last visited
-
Days Won
37
Posts posted by Jono
-
-
Is that a problem? Are you working in something other than PHP? I can spend some time looking into why the encoding is failing
-
Seems that this kind of object can't be json encoded for some reason. Instead of calling getPresenter.json call getPresenter.php and that should work for you.
-
Well the good news is that I get the same response as you. Now I'm looking into why that is. Hoping to give you an update before the end of the day. Thanks for your patience.
-
Alright, I'll try actually making the API call and see if I can replicate the issue.
-
I see, I'll try to do some testing and see if I can replicate this and find a cause.
-
I've seen no other reason this should return an empty response. I'm taking another look
-
8 hours ago, qba82 said:
Yes I know, I checked without "| escape}" tag, in this case password is cut just before < > or &, but if I use "| escape}" tag, then it is not cut but it is showing & instead & and < instead <
Sorry, I had a typo in my last answer. I meant to say that you don't want "| escape}" in the text version. Is that the case?
-
Keep in mind that you only want to add "| escape}" in the HTML and not the Text version. Is that the case?
-
-
Is the service_id submitted valid? The only time you should get an empty response is when it is not.
-
6 hours ago, kala said:
Just wondering is there an option for this yet?
Since 4.9 https://dev.blesta.com/browse/CORE-2872
-
Yea, sorry about the learning curve there. As documented, all config options should be submitted. It is intended behavior that all others will be deleted.
The lack of invoice is also intended behavior. A good place to reference is app/controllers/admin_clients.php. Particularly lines 5590-5689
-
Do you really mean to use a ServiceChange? Would Services::edit do what you want instead? Service changes are processed automatically via cron after their invoice is paid. An edit would happen immediately. use_module tells Blesta whether to invoke the module when making the edit, so yes it will work with or without it.
That being said, I'm not sure of your question at this point. Are you asking what parameters should be submitted to getPresenter?
-
I mentioned this in discord, but it is worth having it here as well. Order form settings control whether to require manual approval on orders. If manual approval is not required by the order form and "Automatically Provision Paid Pending Services" is check at /admin/settings/company/billing/invoices/ then it should provision automatically.
-
It's not a bcc notice. The staff order notification is it's own email template. See admin/settings/company/emails/templates/
-
Unfortunately this is not currently supported, though there is a task for it here https://dev.blesta.com/browse/CORE-1533
-
Maybe something like this?
Or with input-sm
-
Hey Stu, you may get more interaction on this if you post in our discord server https://discord.gg/UNs26C. If you feel like being an especially nice person you could even post back on here some of the answers you get
-
6 minutes ago, CyberHour said:
this must become a High PRIORITY
I'm happy to be able to say, this is actually the main focus of v4.11.0 https://dev.blesta.com/browse/CORE-3356
-
Yup, so two things. First, those requests happen when you save the module row details, just to make sure the credentials are valid. Second, it unfortunately seems the regular availability checks are not being logged. To add logging to that method you can add the following line at line 2280 of app/components/module/namesilo.php:
$this->processResponse($api, $result);
-
Thanks for your hard work I appreciate the extra touch with the installation and configuration guides.
-
12 hours ago, PixelPaul said:
the documentation is the biggest issue i have. it requires a lot of implied knowledge on blesta
If I'm understanding this right, you are saying that it does not make clear what tools are commonly used and available to the module? Do any of my above suggestions address the need you are expressing?
-
Hi there, sorry to hear your experience has been difficult. Thanks for your feed back on the other post, we really appreciate it.
That being said, I don't think there are any module currently doing this. Here are two ways that should work to go about this.
1. Load the Record component ( Loader::loadComponents($this, ['Record']); ) and manually change the database. $this->Record->where('module_row_meta.module_row_id', '=', $module_row_id)->update('module_row_meta', ['api_key' => 'new_api_key']);
2. Use the ModuleManager model (Loader::loadModels($this, ['ModuleManager'])). The method you would use is ::editRow(). $this->ModuleManager->editRow($module_row_id, ['api_key' => 'new_api_key']); One thing to keep in mind is that this method replaces all the meta data for that row so you might want to load the current meta data, update it, then submit it.
$meta_data = $this->ModuleManager->getRowMeta($module_row_id); $vars = []; foreach ($meta_data as $meta) { $vars[$meta->key] = ($meta->key == 'api_key' ? 'new_api_key' : $meta->value); } $this->ModuleManager->editRow($module_row_id, $vars);
Hopefully that is helpful.
Regards,
Jonathan
-
Upgrading/Downgrading a service via API
in General
Posted
Well, the return is a php object referencing a php class, so I don't think there is a way to make that work. That being said, try ServiceChanges::getItems(). I know it's deprecated but I believe it will get the results you want in a way that can be sent to node.