the function set_formular in xCrud_1.7.31 not work. Anybody know what need to change in this function to work (xcrude.php)
It’s hard to say exactly without seeing your code, but in xCrud 1.7.31 there seem to be several regressions compared to 1.6, and `set_formular()` might be one of them.
Before modifying the core (`xcrud.php`), I’d recommend checking a few things:
1. **Make sure the method is still being called correctly**
Some methods were renamed or changed internally between versions. Double-check that `set_formular()` is still used the same way in 1.7.31.
2. **Check if the method is actually executed**
You can add a quick debug inside the function:
```php
var_dump('set_formular called'); exit;
```
If it doesn’t trigger, the issue is likely in how/when it’s being invoked.
3. **Look for internal changes in rendering flow**
In newer versions, form rendering may have been refactored. It’s possible that `set_formular()` is being overridden later in the lifecycle or ignored depending on the mode (modal, inline, etc.).
4. **Avoid modifying the core directly (if possible)**
Changing `xcrud.php` can create maintenance issues. If you do find a fix, it’s better to isolate it or override behavior externally if the library allows it.
5. **Compare with version 1.6**
If it worked before, a quick diff between both versions of `xcrud.php` around `set_formular()` can reveal what changed or broke.

Most likely this is not something you’re doing wrong, but a breaking change or bug in 1.7.31. If you can share a minimal example, it would be easier to pinpoint the exact cause.